Skip to content

Commit

Permalink
ci: Remove version number from release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 13, 2020
1 parent 16927a8 commit 4076de8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ci/upload-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -euo pipefail
IFS=$'\n\t'

cd "$(cd "$(dirname "${0}")" && pwd)"/..

ref="${GITHUB_REF:?}"
tag="${ref#*/tags/}"

Expand All @@ -16,12 +18,18 @@ cd target/release
case "${OSTYPE}" in
linux* | darwin*)
strip "${package}"
asset="${package}-${tag}-${host}.tar.gz"
asset="${package}-${host}.tar.gz"
# TODO: remove this when release the next major version.
asset2="${package}-${tag}-${host}.tar.gz"
tar czf ../../"${asset}" "${package}"
tar czf ../../"${asset2}" "${package}"
;;
cygwin* | msys*)
asset="${package}-${tag}-${host}.zip"
asset="${package}-${host}.zip"
# TODO: remove this when release the next major version.
asset2="${package}-${tag}-${host}.zip"
7z a ../../"${asset}" "${package}".exe
7z a ../../"${asset2}" "${package}".exe
;;
*)
echo "unrecognized OSTYPE: ${OSTYPE}"
Expand All @@ -34,5 +42,5 @@ if [[ -z "${GITHUB_TOKEN:-}" ]]; then
echo "GITHUB_TOKEN not set, skipping deploy"
exit 1
else
gh release upload "${tag}" "${asset}" --clobber
gh release upload "${tag}" "${asset}" "${asset2}" --clobber
fi

0 comments on commit 4076de8

Please sign in to comment.