Files
fission-src/hack/release-tag.sh
T
Sanket SudakeandGitHub 6fbd4878be Generate and archive fission cli per OS and platform (#2071)
* Generate and archive fission cli per OS and platform

* Separate tagging from release script
2021-06-16 13:10:31 +05:30

27 lines
460 B
Bash

doit() {
echo "! $*"
"$@"
}
version=$1
if [ -z $version ]; then
echo "Release version not mentioned"
exit 1
fi
gittag=$version
prefix="v"
gopkgtag=${version/#/${prefix}}
if [[ ${version} == v* ]]; then # if version starts with "v", don't append prefix.
gopkgtag=${version}
fi
# tag the release
doit git tag $gittag
doit git tag -a $gopkgtag -m "Fission $gopkgtag"
# push tag
doit git push origin $gittag
doit git push origin $gopkgtag