improve build workflow cleanup for cache

This commit is contained in:
Danglewood
2025-10-17 08:57:42 -07:00
parent 488c5b1c88
commit 684f59bce3
2 changed files with 12 additions and 4 deletions

View File

@@ -114,6 +114,10 @@ jobs:
desktop/target/release/bundle/macos/*.app.tar.gz
desktop/target/release/bundle/macos/*.app.tar.gz.sig
- name: Cleanup Artifacts
- name: Clean old bundle artifacts
if: always()
run: cargo clean
run: |
bundlePath="${{ github.workspace }}/desktop/target/release/bundle"
if [ -d "$bundlePath" ]; then
rm -rf "$bundlePath"
fi

View File

@@ -115,6 +115,10 @@ jobs:
desktop/target/release/bundle/macos/*.app.tar.gz
desktop/target/release/bundle/macos/*.app.tar.gz.sig
- name: Cleanup Artifacts
- name: Clean old bundle artifacts
if: always()
run: cargo clean
run: |
bundlePath="${{ github.workspace }}/desktop/target/release/bundle"
if [ -d "$bundlePath" ]; then
rm -rf "$bundlePath"
fi