script to tag commit with the version from poetry #11

Merged
ben merged 1 commits from script-tag into main 2022-10-03 15:41:03 +00:00
1 changed files with 17 additions and 0 deletions

17
scripts/git-tag.sh Executable file
View File

@ -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