From 3619004472a1f0c32effd365df15fbb4f54f1de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E6=B1=82=E5=9C=A3=E5=89=91?= Date: Wed, 25 Dec 2024 21:54:01 +0800 Subject: [PATCH] feat: update --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddd6359..85bc002 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,14 +43,17 @@ jobs: - name: Run tests run: cargo test --verbose + # 打包二进制文件 - name: Package binary (only for release builds) + if: startsWith(github.ref, 'refs/tags/') run: | mkdir -p dist - if [[ "${{ runner.os }}" == "Windows" ]]; then + if [ "${{ runner.os }}" = "Windows" ]; then cp target/release/afptool-rs.exe dist/ else cp target/release/afptool-rs dist/ fi + shell: bash - name: Upload Release Artifacts uses: actions/upload-artifact@v3