diff --git a/bump_version.sh b/bump_version.sh new file mode 100755 index 0000000..c40e3b7 --- /dev/null +++ b/bump_version.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +version="$1" +message="$2" + +# Fail if the branch is dirty. +git diff --exit-code + +echo "$version" > "$ROSE_ROOT/rose/.version" +git add . +git commit -am "[Release] $version - $message" +git tag "$version" HEAD -m "$version" +git push origin "$version" +git checkout release +git reset --hard "$version" +git push --force