diff --git a/scripts/bumpminor.sh b/scripts/bumpminor.sh index f0703bd..5521cf0 100755 --- a/scripts/bumpminor.sh +++ b/scripts/bumpminor.sh @@ -1,5 +1,6 @@ #!/bin/sh +set -e uv version --bump patch VER=$(uv version --short) sed -i "s/__version__ = \"[0-9.]*\"\(.*\)$/__version__ = \"$VER\"\1/" hbd/__init__.py @@ -8,5 +9,5 @@ sed -i "s/__version__ = \"[0-9.]*\"\(.*\)$/__version__ = \"$VER\"\1/" hbd/__ini git commit -m "version $VER" pyproject.toml hbd/__init__.py git push # tag version -git tag -a v$VER -m "Version $VER" +git tag -a v$VER -m "Version $VER" git push --tags