Skip to content

Commit 7f82b9e

Browse files
authored
Merge pull request #1135 from pluralitybook/fix/deploy-pages-environment
fix(ci): configure GitHub Pages deployment environment
2 parents 09e9146 + 36b8c88 commit 7f82b9e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,16 @@ jobs:
239239
EXPECTED_SOURCE_REVISION: ${{ github.sha }}
240240
run: vp run book:candidate:validate
241241

242-
# NOTE: The GitHub Pages build/deployment source must be switched from the legacy "gh-pages" branch
243-
# to "GitHub Actions" in the repository settings ONLY after this workflow has run successfully and is green.
244-
# DO NOT mutate live Pages settings or push directly.
242+
# GitHub Pages is configured to deploy from GitHub Actions.
245243
deploy-pages:
246244
runs-on: ubuntu-latest
247245
needs: docs
248246
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'pluralitybook'
249247
permissions:
250248
pages: write
251249
id-token: write
250+
environment:
251+
name: github-pages
252252
steps:
253253
- name: Deploy to GitHub Pages
254254
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e

0 commit comments

Comments
 (0)