Skip to content

Commit b3875b7

Browse files
authored
fix: Replace personal token with github token to make sure it can be deployed automatically.
1 parent fc941b8 commit b3875b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
# make sure this is the branch you are using
88
- main
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: write
913

1014
jobs:
1115
deploy-gh-pages:
@@ -45,9 +49,8 @@ jobs:
4549
- name: Deploy
4650
uses: peaceiris/actions-gh-pages@v3
4751
with:
48-
personal_token: ${{ secrets.MY_TOKEN }}
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
4953
# external_repository: alist-org/alist-org.github.io
5054
publish_branch: gh-pages
5155
publish_dir: docs/.vuepress/dist
52-
cname: alist.nn.ci
5356

0 commit comments

Comments
 (0)