Skip to content

Commit 94bc64a

Browse files
committed
Revert "update to 2022"
This reverts commit f7a5193.
1 parent f7a5193 commit 94bc64a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/deployment.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@ jobs:
104104
if: contains(matrix.os, 'windows')
105105
shell: pwsh
106106
run: |
107-
Compress-Archive -Path "target/${{ matrix.target }}/release/serial-monitor-rust.exe" -DestinationPath "serial-monitor-${{ matrix.target }}.exe.zip"
107+
$exePath1 = "target/${{ matrix.target }}/release/serial-monitor-rust.exe"
108+
$exePath2 = "target/release/serial-monitor-rust.exe"
109+
$exePath = if (Test-Path $exePath1) { $exePath1 } elseif (Test-Path $exePath2) { $exePath2 } else { "" }
110+
if ($exePath -eq "") {
111+
Write-Error "Executable not found"
112+
exit 1
113+
}
114+
Compress-Archive -Path $exePath -DestinationPath "serial-monitor-${{ matrix.target }}.exe.zip"
108115
Move-Item -Path "serial-monitor-${{ matrix.target }}.exe.zip" -Destination $env:GITHUB_WORKSPACE
109116
110117
- name: Compress Output (Windows .msi)

0 commit comments

Comments
 (0)