-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 930 Bytes
/
Copy pathdocs.yml
File metadata and controls
41 lines (35 loc) · 930 Bytes
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
name: Build and deploy documentation
on:
push:
branches:
- main
paths:
- "**/*.md"
- "content/**"
- "scripts/**"
- "Makefile"
- "mkdocs.yml"
- "requirements.txt"
- ".github/workflows/docs.yml"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: build-and-deploy-documentation
cancel-in-progress: true
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Require Cloudflare deploy hook
env:
DEPLOY_HOOK: ${{ secrets.CLOUDFLARE_DOCS_DEPLOY_HOOK }}
run: |
if [[ -z "${DEPLOY_HOOK}" ]]; then
echo "::error::Add the CLOUDFLARE_DOCS_DEPLOY_HOOK repository secret."
exit 1
fi
- name: Trigger easybar.dev rebuild
env:
DEPLOY_HOOK: ${{ secrets.CLOUDFLARE_DOCS_DEPLOY_HOOK }}
run: curl --fail-with-body --request POST "${DEPLOY_HOOK}"