Fix permission block for deploy-website.yml (#1397)

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.
This commit is contained in:
Eric Zhu
2024-01-25 08:54:21 -08:00
committed by GitHub
parent bcfd770a34
commit 6bf62572ee

View File

@@ -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'