From 3c04e4112cc8071d91b27f7e84923e679d9ccd22 Mon Sep 17 00:00:00 2001 From: Kevin Phair Date: Thu, 9 Apr 2026 11:48:27 -0400 Subject: [PATCH] Fix GitHub Pages deployment by enabling self-bootstrapping 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) --- .github/workflows/ghpages.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index 6e2f94d..0a41df6 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -26,6 +26,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: read + pages: write pull-requests: write steps: - name: "Checkout" @@ -89,6 +90,8 @@ jobs: - name: "Configure Pages" if: github.event_name == 'push' uses: actions/configure-pages@v5 + with: + enablement: true - name: "Upload Pages Artifact" if: github.event_name == 'push'