diff --git a/.bumpversion.toml b/.bumpversion.toml index 2391917..18317bf 100644 --- a/.bumpversion.toml +++ b/.bumpversion.toml @@ -2,7 +2,6 @@ current_version = "1.3.5" commit = true tag = true -push = true tag_name = "{new_version}" [[tool.bumpversion.files]] diff --git a/bump_and_push.sh b/bump_and_push.sh new file mode 100644 index 0000000..ccf43bd --- /dev/null +++ b/bump_and_push.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -ex + +# Check if an argument is provided +if [ -z "$1" ]; then + echo "Usage: $0 " + echo "Example: $0 patch" + exit 1 +fi + +PART=$1 + +# Bump the version +bump-my-version bump $PART + +# Push the changes +git push +git push origin --tags \ No newline at end of file