Deploy the site after the checks pass on main
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

Netlify is not notified of pushes to this repository, so the workflow
asks it to build: a third job calls a Netlify build hook once the
validator and the site's tests and build have passed on main. A failing
record or page is therefore never published.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-13 14:20:44 -07:00
1 parent 25f62d0401
commit 48e1cc39fb
1 file changed
+12
+12
View File
@@ -26,3 +26,15 @@ jobs:
# and the build only copies those thumbnails (see web/olt/thumbs.py).
- run: python3 -m unittest discover -s web/tests
- run: python3 web/build.py --out _site
# Netlify builds the site from this repository when asked to. Asking only
# after both jobs above pass means a broken record or page is never deployed.
deploy:
needs: [validate, site]
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'swaits/longhikes'
runs-on: ubuntu-latest
steps:
- name: Ask Netlify to build and publish main
env:
NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }}
run: curl -fsS -X POST -d '{}' "$NETLIFY_BUILD_HOOK"