Skip to content

Commit b021535

Browse files
committed
fix(ci): use ACTIONS_DEPLOY_KEY for gh-pages deploy, add contents:write permission
1 parent 44abb4a commit b021535

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
jobs:
1111
deployment:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1315

1416
steps:
1517
- uses: actions/checkout@v6
@@ -27,7 +29,7 @@ jobs:
2729
- name: Deploy
2830
uses: peaceiris/actions-gh-pages@v4
2931
with:
30-
github_token: ${{ secrets.DOCKER_GITHUB_TOKEN }}
32+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
3133
publish_dir: ./build
3234
publish_branch: gh-pages
3335
force_orphan: true

0 commit comments

Comments
 (0)