Skip to content

Commit 36db24e

Browse files
committed
update workflow
1 parent 0ab25e2 commit 36db24e

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/publish.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,28 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
813
jobs:
914
deploy:
1015
runs-on: ubuntu-latest
1116
steps:
12-
- uses: actions/checkout@v1
17+
- uses: actions/checkout@v4
1318
- uses: actions/setup-node@v2.1.2
1419
- run: yarn
1520

1621
- name: Build
1722
run: yarn build
1823

19-
- name: Deploy
20-
uses: peaceiris/actions-gh-pages@v3
24+
- name: Setup Pages
25+
uses: actions/configure-pages@v5
26+
- name: Upload artifact
27+
uses: actions/upload-pages-artifact@v3
2128
with:
22-
github_token: ${{ secrets.GITHUB_TOKEN }}
23-
publish_dir: ./docs/.vitepress/dist
29+
path: './docs/.vitepress/dist'
30+
- name: Deploy to GitHub Pages
31+
id: deployment
32+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)