diff --git a/scripts/bump-minor.sh b/scripts/bump-minor.sh new file mode 100755 index 000000000..6e5547971 --- /dev/null +++ b/scripts/bump-minor.sh @@ -0,0 +1,9 @@ +#!/bin/bash +git fetch origin --tags + +tag=$(git tag -l --sort=-version:refname | head -n1 | awk -F. '{$2++; $3=0; print $1"."$2"."$3}') +git tag $tag +git push -f origin HEAD +echo "sleep 3 seconds for CI to detect tag pushing" +sleep 3 +git push origin $tag diff --git a/scripts/bump-patch.sh b/scripts/bump-patch.sh new file mode 100755 index 000000000..ab7db2dda --- /dev/null +++ b/scripts/bump-patch.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e +git fetch origin +git fetch origin --tags + +tag=$(git tag -l --sort=-version:refname | head -n1 | awk -F . '{OFS="."; $NF+=1; print $0}') +git rebase origin/main +git tag $tag +git push -f origin HEAD +echo "sleep 3 seconds for CI to detect tag pushing" +sleep 3 +git push origin $tag