Skip to content

Fix GitHub Pages deployment by enabling self-bootstrapping#1

Open
klp2 wants to merge 1 commit intomainfrom
kphair/sul-5949-fix-github-pages-deployment-for-ipfeed-draft
Open

Fix GitHub Pages deployment by enabling self-bootstrapping#1
klp2 wants to merge 1 commit intomainfrom
kphair/sul-5949-fix-github-pages-deployment-for-ipfeed-draft

Conversation

@klp2
Copy link
Copy Markdown
Contributor

@klp2 klp2 commented Apr 9, 2026

Summary

  • Add enablement: true to actions/configure-pages@v5 so it creates the GitHub Pages site if it doesn't exist
  • Add pages: write permission to the build job so the action has authority to create the site

The workflow fails because Pages was never actually created on this new repo. The terraform pages { build_type = "workflow" } config applied successfully, but for a brand-new repo with no prior gh-pages branch, GitHub doesn't create the Pages resource. The configure-pages action then returns "Not Found".

Adding enablement: true makes the workflow self-bootstrapping — it creates Pages on the first run without needing manual setup.

Test plan

Fixes: SUL-5949

🤖 Generated with Claude Code

The Configure Pages action fails with "Not Found" because GitHub
Pages was never created on this repo. Adding enablement: true tells
the action to create the Pages site if it doesn't exist, and
pages: write permission allows it to do so.

Fixes: SUL-5949

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant