From d7748b45d148f2de0f4cad92c07f642ac685baac Mon Sep 17 00:00:00 2001 From: "Jonathan I. Liu" Date: Wed, 15 Jul 2026 16:14:38 -0400 Subject: [PATCH] fix(pages): self-enable Pages in the deploy workflow (first-run 404) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GitHub Pages deploy failed on the first run (the #27 merge) at actions/configure-pages@v5: "Get Pages site failed ... Error: Not Found" — the action read the Pages site before Pages was enabled with the GitHub Actions build type. Add `enablement: true` so configure-pages turns Pages on via the API if it isn't already, making the workflow self-sufficient and idempotent. Merging this re-triggers the workflow (touches the workflow path), which then publishes deploy/wasm-web/ to https://liujonathan24.github.io/NetHackHarness/. Claude-Session: https://claude.ai/code/session_01D3HuJeFjkPti8RgmT88joG --- .github/workflows/deploy-wasm-pages.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy-wasm-pages.yml b/.github/workflows/deploy-wasm-pages.yml index 72684bc..0867d9c 100644 --- a/.github/workflows/deploy-wasm-pages.yml +++ b/.github/workflows/deploy-wasm-pages.yml @@ -29,6 +29,11 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/configure-pages@v5 + # enablement: turn Pages on (GitHub Actions build type) via the API if it + # isn't already, so the very first run can't fail with "Get Pages site + # failed ... Not Found" (the enable-before-read chicken-and-egg). + with: + enablement: true - uses: actions/upload-pages-artifact@v3 with: path: deploy/wasm-web