aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-04-22 06:32:45 +0530
committerBobby <[email protected]>2026-04-22 06:32:45 +0530
commitc9f7b3ef2cb9fa1ba9868b29fe21eb255751e501 (patch)
tree3ca08a5aca21678a0a185d41a47362b47638ba2a /.github
parent6e7a7a457bbaedb129686a88e4bae962d0a6abb5 (diff)
downloadhollowdark-c9f7b3ef2cb9fa1ba9868b29fe21eb255751e501.tar.xz
hollowdark-c9f7b3ef2cb9fa1ba9868b29fe21eb255751e501.zip
Enable GitHub Pages from the deploy workflow itself
configure-pages fails on first run when Pages hasn't been turned on in the repo yet. Passing enablement: true lets the workflow provision the Pages site using its own pages:write token — no manual Settings → Pages trip needed, and subsequent runs are idempotent.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 5a5e234..422eac5 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -42,6 +42,10 @@ jobs:
BASE_PATH: /${{ github.event.repository.name }}
- uses: actions/configure-pages@v5
+ with:
+ # Enable Pages via the workflow's token on first run so the repo
+ # doesn't need a manual trip to Settings → Pages.
+ enablement: true
- uses: actions/upload-pages-artifact@v3
with: