try using a script

This commit is contained in:
Karl 2025-07-15 17:59:49 +01:00
parent f03f56f76b
commit cb7c994e11
2 changed files with 18 additions and 1 deletions

View File

@ -2,7 +2,6 @@
current_version = "1.3.5" current_version = "1.3.5"
commit = true commit = true
tag = true tag = true
push = true
tag_name = "{new_version}" tag_name = "{new_version}"
[[tool.bumpversion.files]] [[tool.bumpversion.files]]

18
bump_and_push.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -ex
# Check if an argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 <part>"
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