Skip to content

Commit

Permalink
Compress binaries before uploading (#24)
Browse files Browse the repository at this point in the history
It's good hygiene to compress binaries before release. This will also
fix issues with Homebrew.
  • Loading branch information
afnanenayet authored Jan 17, 2021
1 parent 95f48ae commit f47c5b9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish_optimized_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,19 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-optimized-${{ hashFiles('**/Cargo.lock') }}
- name: Create archive
uses: master-atul/[email protected]
id: compress
with:
command: c
files: |
./target/release/${{ matrix.artifact_name }}
outPath: ${{ matrix.asset_name }}.tar.gz
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
file: ${{ matrix.asset_name }}.tar.gz
asset_name: ${{ matrix.asset_name }}.tar.gz
tag: ${{ github.ref }}
overwrite: true

0 comments on commit f47c5b9

Please sign in to comment.