Skip to content

Commit 0790f27

Browse files
authored
Merge pull request #162 from xsnippet/fix-assets
Fix asset uploading
2 parents 4ee137b + 271ff18 commit 0790f27

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ jobs:
7272
7373
pushd target/release
7474
if [ "$RUNNER_OS" == "Windows" ]; then
75-
7z a xsnippet-api.exe.7z xsnippet-api.exe
76-
gh release upload "$RELEASE_TAG" "xsnippet-api.exe.7z#xsnippet-api-${target_arch}-${target_os}.exe.7z"
75+
export ASSET_NAME="xsnippet-api-${target_arch}-${target_os}.exe.7z"
76+
7z a $ASSET_NAME xsnippet-api.exe
7777
else
78-
tar cvzf xsnippet-api.gz xsnippet-api
79-
gh release upload "$RELEASE_TAG" "xsnippet-api.gz#xsnippet-api-${target_arch}-${target_os}.gz"
78+
export ASSET_NAME="xsnippet-api-${target_arch}-${target_os}.gz"
79+
tar cvzf $ASSET_NAME xsnippet-api
8080
fi
81+
gh release upload $RELEASE_TAG $ASSET_NAME
8182
popd
8283
env:
8384
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)