You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
publish-gh-pages: a deploy-only mode, so Pages is deployed from a job that runs no notebook code #233
From the 2026-10-06 codebase review (finding M1; record: .qe/dev/log/2026-10-06-codebase-review.md, #220).
Problem
publish-gh-pages runs configure-pages, upload-pages-artifact and deploy-pages in one composite action (publish-gh-pages/action.yml:95-105), so a caller must build and deploy in the same job. That is why templates/publish.yml grants pages: write and id-token: write (:44-48) to the job that executes the notebooks.
GitHub's documented shape for Pages separates the two: the build job needs only contents: read, and the deploy job only deploys. The split does not protect the site's content, which the build produces either way. It keeps the Pages OIDC capability and the pages: write token away from code that runs at build time.
Proposal
A deploy-only mode for publish-gh-pages. For example, an input that selects upload, deploy or both, defaulting to both so callers on @v0 see no change.
templates/publish.yml in two jobs:
Build: in the container, contents: read, ending with the Pages artifact upload.
Deploy:pages: write, id-token: write, the github-pages environment, and nothing but the deploy.
A deploy-only job can run on a GitHub-hosted runner. That sidesteps the open question in docs/dev/PLAN.md about the Pages OIDC flow from RunsOn runners.
Activity
qe: record the outcome of the 2026-10-06 GitHub handover
qe: handover for the GitHub follow-ups of the 2026-10-06 review, and …
feat(publish-gh-pages): a mode input, so Pages is deployed from a job…
feat(publish-gh-pages): a mode input, so Pages is deployed from a job…
docs(manual): the cross-cutting chapters, and signposts for the templ…