Skip to content

Commit 407975c

Browse files
committed
update wf
1 parent 175993c commit 407975c

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: read
9+
contents: write
1010
pages: write
1111
id-token: write
1212

13-
concurrency:
14-
group: "pages"
15-
cancel-in-progress: false
16-
1713
jobs:
18-
build:
14+
deploy:
1915
runs-on: ubuntu-latest
2016

2117
steps:
@@ -34,18 +30,8 @@ jobs:
3430
- name: Build
3531
run: npm run build
3632

37-
- name: Upload artifact
38-
uses: actions/upload-pages-artifact@v3
39-
with:
40-
path: ./dist
41-
42-
deploy:
43-
environment:
44-
name: github-pages
45-
url: ${{ steps.deployment.outputs.page_url }}
46-
runs-on: ubuntu-latest
47-
needs: build
48-
steps:
4933
- name: Deploy to GitHub Pages
50-
id: deployment
51-
uses: actions/deploy-pages@v4
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./dist

0 commit comments

Comments
 (0)