Skip to content

Commit f63db10

Browse files
Use GITHUB_TOKEN instead of PAT
1 parent 6a0e6ad commit f63db10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1315
steps:
1416
# Checkout the code
1517
- uses: actions/checkout@v2
@@ -48,7 +50,7 @@ jobs:
4850
if: ${{ github.ref == 'refs/heads/main' }} # Publish only when the push is on main
4951
uses: peaceiris/[email protected]
5052
with:
51-
github_token: ${{ secrets.PUBLISH_TOKEN }}
53+
github_token: ${{ secrets.GITHUB_TOKEN }}
5254
publish_branch: gh-pages
5355
publish_dir: build/wwwroot
5456
allow_empty_commit: false

0 commit comments

Comments
 (0)