Skip to content

Commit 024281c

Browse files
committed
Fix Windows zip command: Use PowerShell Compress-Archive for Windows, zip for Unix platforms
1 parent 0cc10ed commit 024281c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release-stark-cli.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ jobs:
8787
8888
# Create archive
8989
tar -czf ${{ matrix.artifact_name }}.tar.gz -C dist .
90-
zip -r ${{ matrix.artifact_name }}.zip dist/
90+
if [ "$RUNNER_OS" = "Windows" ]; then
91+
powershell Compress-Archive -Path dist\* -DestinationPath ${{ matrix.artifact_name }}.zip
92+
else
93+
zip -r ${{ matrix.artifact_name }}.zip dist/
94+
fi
9195
9296
ls -la *.tar.gz *.zip
9397
shell: bash

0 commit comments

Comments
 (0)