Skip to content

Commit

Permalink
Merge pull request #162 from xsnippet/fix-assets
Browse files Browse the repository at this point in the history
Fix asset uploading
  • Loading branch information
malor authored Mar 24, 2024
2 parents 4ee137b + 271ff18 commit 0790f27
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ jobs:
pushd target/release
if [ "$RUNNER_OS" == "Windows" ]; then
7z a xsnippet-api.exe.7z xsnippet-api.exe
gh release upload "$RELEASE_TAG" "xsnippet-api.exe.7z#xsnippet-api-${target_arch}-${target_os}.exe.7z"
export ASSET_NAME="xsnippet-api-${target_arch}-${target_os}.exe.7z"
7z a $ASSET_NAME xsnippet-api.exe
else
tar cvzf xsnippet-api.gz xsnippet-api
gh release upload "$RELEASE_TAG" "xsnippet-api.gz#xsnippet-api-${target_arch}-${target_os}.gz"
export ASSET_NAME="xsnippet-api-${target_arch}-${target_os}.gz"
tar cvzf $ASSET_NAME xsnippet-api
fi
gh release upload $RELEASE_TAG $ASSET_NAME
popd
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 0790f27

Please sign in to comment.