Skip to content

Commit

Permalink
Fix permission block for deploy-website.yml (#1397)
Browse files Browse the repository at this point in the history
Based on the instruction here: https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-first-deployment-with-github_token

Write permission is needed to publish GitHub page content to the gh-pages branch.
  • Loading branch information
ekzhu authored Jan 25, 2024
1 parent bcfd770 commit 6bf6257
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ on:
merge_group:
types: [checks_requested]
permissions:
pages: write
# actions: read
# checks: read
# contents: read
# deployments: read
contents: write
jobs:
checks:
if: github.event_name != 'push'
Expand Down

0 comments on commit 6bf6257

Please sign in to comment.