fix(ci): fix Windows artifact cleanup using PowerShell

The bash extglob pattern !(*.exe|*.yml) doesn't work on Windows.
Replace npx rimraf with native PowerShell filtering.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matthew Rathbone
2026-03-11 13:27:01 -05:00
parent a307e8d9ad
commit a257ea1b3c

View File

@@ -366,8 +366,8 @@ jobs:
- name: Cleanup artifacts Win
if: startsWith(matrix.os.name, 'windows')
run: npx rimraf "apps/studio/dist_electron/!(*.exe|*.yml)"
continue-on-error: true
shell: powershell
run: Get-ChildItem apps/studio/dist_electron -File | Where-Object { $_.Extension -notin '.exe','.yml' } | Remove-Item -Force
finalize_mac_yml: