Skip to content

Commit 8896d81

Browse files
authored
update static.yml
1 parent cf401df commit 8896d81

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/static.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23-
# 如果需要 build 步骤,这里可加入
23+
24+
# 这里直接上传整个仓库根目录作为 Pages 内容
2425
- name: Upload Pages artifact
2526
uses: actions/upload-pages-artifact@v3
2627
with:
27-
name: github-pages-assets
28-
path: "./assets"
28+
path: "." # 注意这里部署的是整个仓库根目录
2929

3030
deploy:
3131
needs: build
@@ -36,6 +36,4 @@ jobs:
3636
steps:
3737
- name: Deploy to GitHub Pages
3838
id: deployment
39-
uses: actions/deploy-pages@v4
40-
with:
41-
artifact_name: github-pages-assets
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)