Skip to content

Commit c1a8959

Browse files
eurunuelaclaude
andauthored
fix: configure GitHub Pages to use Actions workflow source (#113)
* fix: configure GitHub Pages to use Actions workflow source Add `actions/configure-pages@v4` step to the build job so the workflow self-configures the Pages source on every non-PR run. This prevents silent regression if someone switches Pages settings back to legacy mode in the UI. The immediate fix (switching build_type from legacy to workflow via the GitHub API) has already been applied to the repo settings. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: move configure-pages step to deploy job Per review feedback, configure-pages only needs to run when deploying. Moving it to the deploy job (which already has the Pages write/OIDC permissions and the non-PR guard) follows least-privilege and avoids configuring Pages on runs where deployment is skipped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b282a9a commit c1a8959

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ jobs:
9393
name: github-pages
9494
url: ${{ steps.deployment.outputs.page_url }}
9595
steps:
96+
- name: Configure GitHub Pages
97+
uses: actions/configure-pages@v4
98+
9699
- name: Deploy to GitHub Pages
97100
id: deployment
98101
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)