fix: let the Pages job enable Pages itself

configure-pages fails with a 404 when Pages has never been switched on for
the repository. It can enable it given the pages: write permission the job
already holds, which beats requiring a trip through settings before CI can
go green.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
Lucas Winther
2026-08-15 01:30:23 +02:00
co-authored by Claude Opus 5
parent abaecc13c7
commit fd1111017f
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -131,6 +131,12 @@ jobs:
name: site
path: public
- uses: actions/configure-pages@v5
with:
# Turn Pages on rather than requiring someone to click through
# repository settings first. Needs the pages: write permission above.
# If this still fails, Pages is unavailable for the repository —
# private repos on the free plan cannot use it; delete this job.
enablement: true
- uses: actions/upload-pages-artifact@v3
with:
path: public