aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-23 00:43:38 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-23 00:43:38 +0800
commit6e9d1266f82b64d53fe35cfb662242a180baa56f (patch)
tree666849fda408bf9544931ab60b49a103c310b2f3
parent55098f71bd3314531cef2b68bd209a4746476b06 (diff)
ci(ci): Move .temp cleanup closer to deployment step
-rw-r--r--.github/workflows/ci.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5b861c2..71b63ca 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -85,9 +85,6 @@ jobs:
- name: Install nightly toolchain
run: rustup toolchain install nightly
- - name: Delete .temp directory before deployment
- run: rm -rf .temp
-
- name: Build API docs
run: cargo +nightly run --manifest-path .run/Cargo.toml --bin deploy-api-docs -- --docsrs
@@ -97,12 +94,17 @@ jobs:
- name: Run cov-test
run: cargo run --manifest-path .run/Cargo.toml --bin cov-test
+ - name: Delete .temp directory before deployment
+ run: rm -rf .temp
+
- name: Setup Pages
uses: actions/configure-pages@v5
+
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "."
+
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5