From a36958a3e703f2a4a7a6b564f8249035803b38ae Mon Sep 17 00:00:00 2001 From: Ben Kristinsson Date: Mon, 3 Oct 2022 17:40:09 +0200 Subject: [PATCH] script to tag --- scripts/git-tag.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/git-tag.sh diff --git a/scripts/git-tag.sh b/scripts/git-tag.sh new file mode 100755 index 0000000..82847f9 --- /dev/null +++ b/scripts/git-tag.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +git tag v$(poetry version -s) + +read -p "push tag? " pushtag +case $pushtag in + n|no|N|NO) + echo "not pushing!" + exit 0 + ;; + *) + echo -n +esac + +echo git push --tags -- 2.40.1