File tree Expand file tree Collapse file tree 1 file changed +25
-8
lines changed
Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,32 @@ jobs:
4343 - name : Build the website
4444 run : NODOWNLOAD=1 python make_site.py
4545
46- # vvvv 这是核心改动 vvvv
46+ # 添加调试步骤,检查构建输出
47+ - name : Check build output
48+ run : |
49+ echo "Build directory contents:"
50+ ls -la ./build/
51+ echo "Checking for symlinks and hardlinks:"
52+ find ./build -type l -o -type f -links +1 | head -20 || true
53+ echo "Build directory size:"
54+ du -sh ./build/
55+
56+ # 清理可能的符号链接和设置正确权限
57+ - name : Clean build artifacts
58+ run : |
59+ # 移除任何符号链接
60+ find ./build -type l -delete || true
61+ # 确保所有文件都有正确的权限
62+ find ./build -type f -exec chmod 644 {} \;
63+ find ./build -type d -exec chmod 755 {} \;
64+
65+ - name : Setup Pages
66+ uses : actions/configure-pages@v4
67+
4768 - name : Upload artifact
48- # 我们换回通用的 upload-artifact
49- uses : actions/upload-artifact@v4
69+ uses : actions/upload-pages-artifact@v3
5070 with :
51- # 并明确地将它命名为 "github-pages"
52- name : github-pages
5371 path : ./build
54- # ^^^^ 核心改动结束 ^^^^
5572
5673 deploy :
5774 name : Deploy to GitHub Pages
6178 name : github-pages
6279 url : ${{ steps.deployment.outputs.page_url }}
6380 steps :
64- - name : Deploy from artifact
65- # deploy-pages 现在可以根据明确的名称找到包裹
81+ - name : Deploy to GitHub Pages
82+ id : deployment
6683 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments