Skip to content

Commit 6889ead

Browse files
authored
Re-enable support for nightly and manual builds (#394)
* 1st try * Added docs
1 parent db9bfdf commit 6889ead

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
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/
26

37
on:
4-
push:
5-
branches:
6-
- main
78
schedule:
89
- cron: '15 2 * * *'
910
workflow_dispatch:
@@ -12,19 +13,7 @@ jobs:
1213
build:
1314
runs-on: ubuntu-latest
1415
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
2617
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

0 commit comments

Comments
 (0)