File tree Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Original file line number Diff line number Diff line change 1
- name : Build and deploy site
1
+ name : Build and deploy production site
2
+
3
+ # This job simply calls a trigger hook in netlify.
4
+ # The hook is configured in an organization secret.
5
+ # https://docs.netlify.com/configure-builds/build-hooks/
2
6
3
7
on :
4
- push :
5
- branches :
6
- - main
7
8
schedule :
8
9
- cron : ' 15 2 * * *'
9
10
workflow_dispatch :
12
13
build :
13
14
runs-on : ubuntu-latest
14
15
steps :
15
- - uses : actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
16
- with :
17
- submodules : true
18
- - uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
19
- with :
20
- node-version : ' 16'
21
- cache : ' npm'
22
- - run : npm ci
23
- - run : make ANTORAFLAGS=--fetch PLAYBOOK=antora-playbook.yml
24
- - name : Publish to GitHub Pages
25
- uses : peaceiris/actions-gh-pages@64b46b4226a4a12da2239ba3ea5aa73e3163c75b # v3
16
+ - name : Call Netlify build hook
26
17
with :
27
- github_token : ${{ secrets.GITHUB_TOKEN }}
28
- cname : docs.stackable.tech
29
- publish_dir : build/site
30
- publish_branch : docs
18
+ HOOK_URL : ${{ secrets.NETLIFY_BUILD_TRIGGER_HOOK }}
19
+ - run : curl -X POST -d '{}' $HOOK_URL
You can’t perform that action at this time.
0 commit comments