From 69c7d1af48d983339ed95dfea90d960fc0b4c101 Mon Sep 17 00:00:00 2001 From: Ivan Banov Date: Sun, 19 Jul 2026 19:12:20 +0200 Subject: [PATCH] ci(deploy): drop enablement, read the existing Pages config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The workflow's GITHUB_TOKEN can't create a Pages site — `configure-pages` with `enablement: true` failed with "Resource not accessible by integration". Pages is now enabled out-of-band (build_type: workflow), so the step only needs to read the config and expose `base_path`. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/deploy.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3677358..87fa11b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,12 +24,11 @@ jobs: # git, pnpm, node (.nvmrc), and a frozen install — same as CI. - uses: ./.github/actions/ci-setup - # `enablement: true` turns Pages on via the API the first time, so the - # deploy works without a manual toggle in repo settings. + # Reads the Pages config and exposes `base_path` for the build. Pages is + # enabled out-of-band (Settings -> Pages -> Source: GitHub Actions) — + # the workflow token can't create the site, so no `enablement: true`. - id: pages uses: actions/configure-pages@v5 - with: - enablement: true - name: Build Storybook # The project site is served under // (e.g. /ui/), so the