fix: 更新部署文档工作流,移除打包工件步骤并调整上传路径

This commit is contained in:
MKStoler1024 2025-01-31 18:01:38 +00:00
parent 9da5df60f2
commit 87608db040
2 changed files with 5 additions and 27 deletions

View File

@ -42,26 +42,11 @@ jobs:
pnpm run docs:build
> src/.vuepress/dist/.nojekyll
- name: 打包工件
shell: sh
if: runner.os == 'Linux'
run: |
tar \
--directory "./src/.vuepress/dist/" \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
.
env:
INPUT_PATH: ./build
- name: 上传工件
uses: actions/upload-artifact@v4
uses: actions/upload-pages-artifact@v1
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
path: src/.vuepress/dist
retention-days: 1
if-no-files-found: error
deploy:
needs: build
@ -73,13 +58,6 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: 下载工件
uses: actions/download-artifact@v4
with:
name: github-pages
path: ${{ runner.temp }}
- name: 部署到 GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
with:
artifact_path: ${{ runner.temp }}/artifact.tar

View File

@ -20,12 +20,12 @@ category:
您可以手动编写集控配置文件,并将其托管到静态网站上。
[🚀入门教程](/examschedule/management-config.md)
[🚀入门教程](examschedule/management-config.md)
<a id="get-started-server"></a>
### 集控服务器
[🚀入门教程](/examcloud/client-identify.md)
[🚀入门教程](examcloud/client-identify.md)
<a id="get-started-compare"></a>