Repository navigation
fix: enable GitHub Pages for pkgdown site - #2
Closed
bbuchsbaum wants to merge 1 commit into
Closed
bbuchsbaum wants to merge 1 commit into
bbuchsbaum wants to merge 1 commit into
Conversation
Site content already deploys to gh-pages, but Pages was never enabled (has_pages=false), so the hosted URL 404s. Grant pages:write and POST the Pages source so deploy can publish the live site. Co-authored-by: bbuchsbaum <bbuchsbaum@users.noreply.github.com>
Owner
Author
|
Independent review: the pkgdown artifact and gh-pages branch were already valid; GitHub Pages itself was disabled. Pages has now been enabled directly from gh-pages:/, the deployment succeeded, and https://bbuchsbaum.github.io/templateflow/ returns HTTP 200. This workflow change is therefore unnecessary. In addition, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The pkgdown workflow was building and deploying successfully to
gh-pages, but GitHub Pages was never enabled (has_pages: false), so https://bbuchsbaum.github.io/templateflow/ returned a GitHub 404.Fix
Smallest coherent change, matching sibling portfolio packages (
neuroim2,bidser):pages: writeon the pkgdown jobEnable GitHub Pagesstep that POSTs{"source":{"branch":"gh-pages","path":"/"}}(idempotent via|| true) before deployNo package semantics, tests, or other CI gates were changed.
Evidence
has_pages: falsewhilegh-pagesalready contains a valid pkgdownindex.htmlmain, the push-triggered pkgdown job should enable Pages and redeploy; the portfolio monitor should then see a live siteRemaining blocker
If org/repo Actions permissions disallow creating Pages via
GITHUB_TOKENeven withpages: write, an admin must enable Pages once under Settings → Pages → Deploy from branchgh-pages/ root. The workflow change is still the correct durable fix.