Make build.sh tag push even already created tags.

This commit is contained in:
hackademix 2020-09-04 19:54:29 +02:00
parent eb3dbf9f4b
commit 7866f63d8f
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ strip_rc_ver() {
VER=$(grep '"version":' "$MANIFEST_IN" | sed -re 's/.*": "(.*?)".*/\1/') VER=$(grep '"version":' "$MANIFEST_IN" | sed -re 's/.*": "(.*?)".*/\1/')
if [ "$1" == "tag" ]; then if [ "$1" == "tag" ]; then
echo "Tagging at $VER" echo "Tagging at $VER"
git tag -a "$VER" && git push origin "$VER" git tag -a "$VER"
git push origin "$VER"
exit 0 exit 0
fi fi
if [[ "$1" =~ ^r(el(ease)?)?$ ]]; then if [[ "$1" =~ ^r(el(ease)?)?$ ]]; then