File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments