Skip to content

Commit

Permalink
Fix missing zip tool on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pemistahl committed Jan 5, 2021
1 parent 93552a5 commit f44b01b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/chr-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ jobs:

- name: Create zip file on Windows
if: ${{ matrix.os == 'windows-latest' }}
run: zip chr-${{ steps.get_version.outputs.version }}-${{ matrix.target }}.zip target/${{ matrix.target }}/release/chr.exe
run: |
choco install zip
zip chr-${{ steps.get_version.outputs.version }}-${{ matrix.target }}.zip target/${{ matrix.target }}/release/chr.exe
- name: Create tar.gz file on macOS and Linux
if: ${{ matrix.os != 'windows-latest' }}
Expand All @@ -82,9 +84,3 @@ jobs:
release_name: chr ${{ steps.get_version.outputs.version-without-v }}
file_glob: true
file: target/${{ matrix.target }}/release/chr-${{ steps.get_version.outputs.version }}-${{ matrix.target }}.{zip,tar.gz}

# HOW TO PROVIDE THE TOKEN ?
#- name: Upload release to crates.io
# uses: katyo/publish-crates@v1
# with:
# registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit f44b01b

Please sign in to comment.