Skip to content

Commit 78944b0

Browse files
committed
Grant publish permissions
1 parent 0d12624 commit 78944b0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/publish-book.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ on:
1313
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
1414
jobs:
1515
deploy-book:
16+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
17+
permissions:
18+
pages: write # to deploy to Pages
19+
id-token: write # to verify the deployment originates from an appropriate source
20+
21+
# Deploy to the github-pages environment
22+
environment:
23+
name: github-pages
24+
url: ${{ steps.deployment.outputs.page_url }}
25+
1626
runs-on: ubuntu-latest
1727
steps:
1828
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)