Skip to content

Commit dfe4933

Browse files
frant1cfrant1c
authored andcommitted
fix
1 parent c4d794f commit dfe4933

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ on:
44
push:
55
branches: [main]
66

7+
# 设置权限
78
permissions:
89
contents: read
910
pages: write
1011
id-token: write
1112

13+
# 只允许一个并发部署
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
1218
jobs:
1319
build:
1420
runs-on: ubuntu-latest
@@ -29,10 +35,10 @@ jobs:
2935
run: npm run build
3036

3137
- name: Setup Pages
32-
uses: actions/configure-pages@v3
38+
uses: actions/configure-pages@v4
3339

3440
- name: Upload artifact
35-
uses: actions/upload-pages-artifact@v2
41+
uses: actions/upload-pages-artifact@v3
3642
with:
3743
path: ./dist
3844

@@ -45,4 +51,4 @@ jobs:
4551
steps:
4652
- name: Deploy to GitHub Pages
4753
id: deployment
48-
uses: actions/deploy-pages@v2
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)