-
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (52 loc) · 1.55 KB
/
docs.yaml
File metadata and controls
62 lines (52 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: "Docs"
on:
workflow_dispatch:
push:
branches: [master]
paths:
- ".github/workflows/docs.yaml"
- "zensical.toml"
- "docs/**"
env:
crawler-id: ""
purge-domain: ""
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
name: "Docs"
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
pages: write
id-token: write
environment:
name: docs
url: ${{ steps.zensical.outputs.page_url }}
steps:
- name: "Zensical Action"
id: zensical
uses: cssnr/zensical-action@master
with:
prepare: 'sed -i "s/>Zensical<\/a>/>Zensical<\/a> v${ZENSICAL_VERSION}/" zensical.toml'
- name: "Purge Cache"
if: ${{ env.purge-domain != '' }}
uses: cssnr/cloudflare-purge-cache-action@v2
with:
zones: ${{ env.purge-domain }}
token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- name: "Algolia Crawler"
if: ${{ env.crawler-id != '' }}
uses: cssnr/algolia-crawler-action@v1
with:
crawler_id: ${{ env.crawler-id }}
crawler_user_id: ${{ secrets.CRAWLER_USER_ID }}
crawler_api_key: ${{ secrets.CRAWLER_API_KEY }}
- name: "Send Notification"
if: ${{ !cancelled() }}
continue-on-error: true
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ steps.zensical.outputs.page_url }}