Skip to content

Commit 16effc7

Browse files
committed
grant permission for job to publish
1 parent 6b19b04 commit 16effc7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-to-gh-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build-and-deploy:
1013
runs-on: ubuntu-latest
@@ -44,7 +47,6 @@ jobs:
4447
- name: Deploy 🚀
4548
uses: JamesIves/github-pages-deploy-action@v4
4649
with:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4850
branch: gh-pages # The branch the action should deploy to.
4951
folder: build # The folder the action should deploy.
5052
clean: true # Automatically remove deleted files from the deploy branch

0 commit comments

Comments
 (0)