Skip to content

Commit 9027f4e

Browse files
Use local token instead.
1 parent 2590302 commit 9027f4e

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@v4
@@ -42,7 +44,7 @@ jobs:
4244
if: ${{ github.ref == 'refs/heads/main' }} # Publish only when the push is on main
4345
uses: peaceiris/actions-gh-pages@v3
4446
with:
45-
github_token: ${{ secrets.PUBLISH_TOKEN }}
47+
github_token: ${{ secrets.GITHUB_TOKEN }}
4648
publish_branch: gh-pages
4749
publish_dir: build/wwwroot
4850
allow_empty_commit: false

0 commit comments

Comments
 (0)