Skip to content

ci(pages): self-enable Pages site on first deploy (fix 404)#24

Merged
jimstratus merged 1 commit into
masterfrom
claude/pages-self-enable
Jun 23, 2026
Merged

ci(pages): self-enable Pages site on first deploy (fix 404)#24
jimstratus merged 1 commit into
masterfrom
claude/pages-self-enable

Conversation

@jimstratus

Copy link
Copy Markdown
Owner

Why

The first Pages deploy on master (run 28018628429) failed, which is why the site 404s. The build step worked (clean published tree), but actions/configure-pages@v5 errored:

Get Pages site failed. Please verify that the repository has Pages enabled
and configured to build using GitHub Actions ... Error: Not Found

GitHub Pages was never enabled on the repo, so there's no Pages site to deploy to.

Fix

Pass enablement: true to actions/configure-pages@v5 so the action creates/enables the Pages site (build type = GitHub Actions) on first run instead of 404ing:

- name: Setup Pages
  uses: actions/configure-pages@v5
  with:
    enablement: true

After merge

On push to master, the workflow should enable Pages and deploy to https://jimstratus.github.io/argus/.

⚠️ Programmatic enablement works on most personal repos but can be blocked by account/org policy. If this run still fails with the same "Not Found", flip Settings → Pages → Source = "GitHub Actions" once and re-run — after that it's permanent.

🤖 Generated with Claude Code

https://claude.ai/code/session_011HG8Axfxjf6rv2mKKDEMxv


Generated by Claude Code

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
@jimstratus jimstratus marked this pull request as ready for review June 23, 2026 10:14
@jimstratus jimstratus merged commit 6fa8158 into master Jun 23, 2026
3 checks passed
@jimstratus jimstratus deleted the claude/pages-self-enable branch June 23, 2026 10:15
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.

2 participants