ci(pages): self-enable Pages site on first deploy (fix 404)#24
Merged
Conversation
The first deploy to master failed at actions/configure-pages with "Get Pages site failed ... Not Found" because GitHub Pages was never enabled on the repo. Pass enablement: true so the action creates the Pages site (build type = GitHub Actions) instead of 404ing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011HG8Axfxjf6rv2mKKDEMxv
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.
Why
The first Pages deploy on
master(run 28018628429) failed, which is why the site 404s. The build step worked (clean published tree), butactions/configure-pages@v5errored:GitHub Pages was never enabled on the repo, so there's no Pages site to deploy to.
Fix
Pass
enablement: truetoactions/configure-pages@v5so the action creates/enables the Pages site (build type = GitHub Actions) on first run instead of 404ing:After merge
On push to
master, the workflow should enable Pages and deploy to https://jimstratus.github.io/argus/.🤖 Generated with Claude Code
https://claude.ai/code/session_011HG8Axfxjf6rv2mKKDEMxv
Generated by Claude Code