From 56a1fbcf735ea0a0f01ce1e761146b2c30134a2c Mon Sep 17 00:00:00 2001 From: Eshwar Chandra Vidhyasagar Thedla Date: Thu, 9 Apr 2026 01:15:49 -0500 Subject: [PATCH] ci(docs): remove brittle Pages preflight The Pages API check can fail under token restrictions even when Pages is configured; rely on configure-pages/deploy-pages instead. Made-with: Cursor --- .github/workflows/docs.yml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 86f40db..2a009d2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -39,29 +39,6 @@ jobs: - name: Disable Jekyll (avoid 404 on paths with _) run: touch site/.nojekyll - - name: Check Pages is enabled (required once) - id: pages_check - uses: actions/github-script@v7 - with: - script: | - try { - await github.rest.repos.getPagesSite({ - owner: context.repo.owner, - repo: context.repo.repo, - }) - core.setOutput("enabled", "true") - } catch (e) { - // GitHub returns 404 when Pages isn't enabled for the repo. - core.setOutput("enabled", "false") - } - - - name: Fail with instructions if Pages disabled - if: steps.pages_check.outputs.enabled != 'true' - run: | - echo "::error::GitHub Pages is not enabled for this repository yet." - echo "Enable it once at: Settings → Pages → Build and deployment → Source = GitHub Actions" - exit 1 - - uses: actions/configure-pages@v4 - uses: actions/upload-pages-artifact@v3