Skip to content

Re-enable support for nightly and manual builds #394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 8 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Build and deploy site
name: Build and deploy production site

# This job simply calls a trigger hook in netlify.
# The hook is configured in an organization secret.
# https://docs.netlify.com/configure-builds/build-hooks/

on:
push:
branches:
- main
schedule:
- cron: '15 2 * * *'
workflow_dispatch:
Expand All @@ -12,19 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
with:
submodules: true
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: '16'
cache: 'npm'
- run: npm ci
- run: make ANTORAFLAGS=--fetch PLAYBOOK=antora-playbook.yml
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@64b46b4226a4a12da2239ba3ea5aa73e3163c75b # v3
- name: Call Netlify build hook
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: docs.stackable.tech
publish_dir: build/site
publish_branch: docs
HOOK_URL: ${{ secrets.NETLIFY_BUILD_TRIGGER_HOOK }}
- run: curl -X POST -d '{}' $HOOK_URL