Let the workflow enable Pages instead of failing without it
actions/configure-pages fails with "Get Pages site failed" on a repository
where Pages has never been turned on, which stopped the first run after a green
test suite. `enablement: true` creates the Pages site with the `pages: write`
permission the workflow already holds, so the first push configures itself.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TL4uoCCvX2CqHWT8p3tLd7
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index f70e09f..a6fac23 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -48,6 +48,11 @@ jobs:
- name: Configure Pages
id: pages
uses: actions/configure-pages@v5
+ with:
+ # Turn Pages on for the repository if it is not already, rather than
+ # failing the build until somebody visits the settings page. Needs
+ # the `pages: write` permission granted above.
+ enablement: true
- name: Build
env: