Skip to content

Commit 088a2e9

Browse files
agjsclaude
andcommitted
fix(ci): auto-enable GitHub Pages on first deploy
actions/configure-pages returns 404 when the repository has not yet enabled Pages. Setting enablement: true turns Pages on during the first deploy workflow run, so forks of this template don't need the 'Settings → Pages → Source = GitHub Actions' manual step. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9b219a9 commit 088a2e9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
cache: pnpm
2929
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
3030
id: pages
31+
with:
32+
# Auto-enables Pages on first run so forkers don't have to
33+
# click Settings → Pages → Source = "GitHub Actions" manually.
34+
enablement: true
3135
- run: pnpm install --frozen-lockfile
3236
- name: build with public base path
3337
env:

0 commit comments

Comments
 (0)