Skip to content

Commit

Permalink
refactor: Grant necessary permissions for GitHub Pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jyzhao committed Jun 18, 2024
1 parent 3a0a012 commit 2db62af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish-to-github-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
Expand Down

0 comments on commit 2db62af

Please sign in to comment.