Skip to content

Commit 3f8f399

Browse files
Add PowerShell error handling to artifact deletion in pipeline (#371)
1 parent e2b371f commit 3f8f399

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-and-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,14 @@ jobs:
304304
- name: Delete previous artifact, which may exist due to caching (Windows - MSI)
305305
if: startsWith(matrix.platform, 'windows') && contains(matrix.tauri_bundle, 'msi')
306306
run: |
307-
rm -Force "runtime/target/${{ matrix.rust_target }}/release/bundle/msi/MindWork AI Studio_*.msi"
308-
rm -Force "runtime/target/${{ matrix.rust_target }}/release/bundle/msi/MindWork AI Studio*msi.zip*"
307+
rm -Force "runtime/target/${{ matrix.rust_target }}/release/bundle/msi/MindWork AI Studio_*.msi" -ErrorAction SilentlyContinue
308+
rm -Force "runtime/target/${{ matrix.rust_target }}/release/bundle/msi/MindWork AI Studio*msi.zip*" -ErrorAction SilentlyContinue
309309
310310
- name: Delete previous artifact, which may exist due to caching (Windows - NSIS)
311311
if: startsWith(matrix.platform, 'windows') && contains(matrix.tauri_bundle, 'nsis')
312312
run: |
313-
rm -Force "runtime/target/${{ matrix.rust_target }}/release/bundle/nsis/MindWork AI Studio_*.exe"
314-
rm -Force "runtime/target/${{ matrix.rust_target }}/release/bundle/nsis/MindWork AI Studio*nsis.zip*"
313+
rm -Force "runtime/target/${{ matrix.rust_target }}/release/bundle/nsis/MindWork AI Studio_*.exe" -ErrorAction SilentlyContinue
314+
rm -Force "runtime/target/${{ matrix.rust_target }}/release/bundle/nsis/MindWork AI Studio*nsis.zip*" -ErrorAction SilentlyContinue
315315
316316
- name: Delete previous artifact, which may exist due to caching (Linux - Debian Package)
317317
if: startsWith(matrix.platform, 'ubuntu') && contains(matrix.tauri_bundle, 'deb')

0 commit comments

Comments
 (0)