fix: 更新上传工件的 GitHub Actions 版本至 v4,并添加文件未找到时的错误处理

This commit is contained in:
MKStoler1024 2025-01-31 18:05:57 +00:00
parent 46af7256d1
commit 0d3dc1c7d6

View File

@ -43,10 +43,12 @@ jobs:
> src/.vuepress/dist/.nojekyll
- name: 上传工件
uses: actions/upload-pages-artifact@v2
uses: actions/upload-artifact@v4
with:
name: github-pages
path: src/.vuepress/dist
retention-days: 1
if-no-files-found: error
deploy:
needs: build