Skip to content

Commit

Permalink
Workflow: Archive as .zip for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Funami580 committed Sep 10, 2021
1 parent 6506297 commit 2fd214c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ jobs:
run: cargo build --release
- name: Archive as .tar.gz (Linux)
if: matrix.os == 'ubuntu-latest'
run: tar cfz htmlq-x86_64-linux.tar.gz -C target/release htmlq
run: tar cf htmlq-x86_64-linux.tar.gz -C target/release htmlq -I 'gzip --best'
- name: Archive as .tar.gz (macOS)
if: matrix.os == 'macos-latest'
run: tar cfz htmlq-x86_64-darwin.tar.gz -C target/release htmlq
- name: Archive as .tar.gz (Windows)
run: |
tar cf htmlq-x86_64-darwin.tar -C target/release htmlq
gzip --best htmlq-x86_64-darwin.tar
- name: Archive as .zip (Windows)
if: matrix.os == 'windows-latest'
shell: bash
run: tar cfz htmlq-x86_64-windows.tar.gz -C target/release htmlq.exe
run: zip -9 -j htmlq-x86_64-windows.zip target/release/htmlq.exe
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: htmlq*.tar.gz
files: |
htmlq*.tar.gz
htmlq*.zip

0 comments on commit 2fd214c

Please sign in to comment.