Skip to content

ci(docs): let a manual dispatch actually deploy the site - #5

Merged
SOSOVSKI merged 1 commit into
mainfrom
fix/pages-deploy-on-dispatch
Aug 31, 2026
Merged

ci(docs): let a manual dispatch actually deploy the site#5
SOSOVSKI merged 1 commit into
mainfrom
fix/pages-deploy-on-dispatch

Conversation

@SOSOVSKI

Copy link
Copy Markdown
Contributor

https://cemm2.github.io/AKMS/ returns 404. The site has never deployed.

The most recent Documentation run (dispatched by 08_go_public.sh right
after the public flip) is green, but its job list reads:

success  Build documentation strictly
skipped  Deploy GitHub Pages

Both the upload-pages-artifact step and the deploy job were gated on
github.event_name == 'push' && github.ref == 'refs/heads/main'. A
workflow_dispatch therefore builds the docs and discards them.

This matters beyond the one dispatch: docs.yml also has paths: filters
on push, so a commit to main that touches nothing under docs/,
mkdocs.yml, packages/**/src/** or examples/** will not deploy either.
Between the two, there was no way to bring the site up on demand at all.

The condition now leads with the ref, so a dispatch from a feature branch
cannot publish itself over the released documentation:

if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')

After merge, dispatch docs.yml on main once to bring the site up.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TcdE6eeSDBh8xrgKCoGrkw

Both the artifact upload and the deploy job were gated on
`github.event_name == 'push'`, so a workflow_dispatch built the docs and
then threw them away. The go-public script dispatches docs.yml precisely
because the flip is not a push, which meant Pages could never come up
that way — https://cemm2.github.io/AKMS/ is currently 404 with the deploy
job reporting `skipped`.

docs.yml also carries `paths:` filters on push, so an unrelated commit to
main does not trigger it either. Without a dispatch path there is no way
to redeploy the site on demand at all.

Gate on the ref first so a dispatch from a feature branch cannot publish
itself over the released docs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TcdE6eeSDBh8xrgKCoGrkw
@SOSOVSKI
SOSOVSKI merged commit e265368 into main Aug 31, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant