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:
72
72
73
73
pushd target/release
74
74
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
77
77
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
80
80
fi
81
+ gh release upload $RELEASE_TAG $ASSET_NAME
81
82
popd
82
83
env:
83
84
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments