Generate and archive fission cli per OS and platform (#2071)

* Generate and archive fission cli per OS and platform

* Separate tagging from release script
This commit is contained in:
Sanket Sudake
2021-06-16 13:10:31 +05:30
committed by GitHub
parent 023a9905f6
commit 6fbd4878be
8 changed files with 513 additions and 56 deletions
+26
View File
@@ -0,0 +1,26 @@
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