Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 29, 2024
1 parent f8e5b15 commit 66b44a2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ jobs:
if: runner.os == 'Windows'
run: choco install zip
shell: pwsh

- name: Create zip file on Windows
if: runner.os == 'Windows'
run: powershell -command "Compress-Archive -Path 'target/release/sgo.exe' -DestinationPath 'sgo-${{ matrix.target }}.zip'"

- name: Create zip file
run: |
if [[ $RUNNER_OS == 'Windows' ]]; then
powershell -command "Compress-Archive -Path 'target/release/sgo.exe' -DestinationPath './sgo-${{ matrix.target }}.zip'"
else
zip -j sgo-${{ matrix.target }}.zip target/release/sgo
fi
- name: Create zip file on Unix
if: runner.os != 'Windows'
run: zip -j sgo-${{ matrix.target }}.zip target/release/sgo

- name: Read Version
run: |
Expand Down

0 comments on commit 66b44a2

Please sign in to comment.