We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf401df commit 8896d81Copy full SHA for 8896d81
1 file changed
.github/workflows/static.yml
@@ -20,12 +20,12 @@ jobs:
20
steps:
21
- name: Checkout
22
uses: actions/checkout@v4
23
- # 如果需要 build 步骤,这里可加入
+
24
+ # 这里直接上传整个仓库根目录作为 Pages 内容
25
- name: Upload Pages artifact
26
uses: actions/upload-pages-artifact@v3
27
with:
- name: github-pages-assets
28
- path: "./assets"
+ path: "." # 注意这里部署的是整个仓库根目录
29
30
deploy:
31
needs: build
@@ -36,6 +36,4 @@ jobs:
36
37
- name: Deploy to GitHub Pages
38
id: deployment
39
- uses: actions/deploy-pages@v4
40
- with:
41
- artifact_name: github-pages-assets
+ uses: actions/deploy-pages@v4
0 commit comments