Skip to content

Commit

Permalink
Also generate and upload compressed files to each release
Browse files Browse the repository at this point in the history
  • Loading branch information
mandx committed Feb 12, 2020
1 parent 5b54c89 commit 24f5a9d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
asset_name: mungye-linux-amd64
- os: windows-latest
artifact_name: mungye.exe
asset_name: mungye-windows-amd64
asset_name: mungye-windows-amd64.exe
- os: macos-latest
artifact_name: mungye
asset_name: mungye-macos-amd64
Expand All @@ -35,10 +35,18 @@ jobs:
with:
command: build
args: --release
- run: cd target/release/ && tar -czf ${{ matrix.artifact_name }}.tar.gz ${{ matrix.artifact_name }}
- uses: svenstaro/upload-release-action@1.0.1
name: Upload files to a GitHub release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
- uses: svenstaro/upload-release-action@1.0.1
name: Upload compressed files to a GitHub release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}.tar.gz
asset_name: ${{ matrix.asset_name }}.tar.gz
tag: ${{ github.ref }}

0 comments on commit 24f5a9d

Please sign in to comment.