From 8e68b19176581f54b46b73d86a994969645efd5d Mon Sep 17 00:00:00 2001 From: blissful Date: Sun, 19 Nov 2023 21:11:20 -0500 Subject: [PATCH] add bump version script --- bump_version.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bump_version.sh diff --git a/bump_version.sh b/bump_version.sh new file mode 100755 index 0000000..685700c --- /dev/null +++ b/bump_version.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +version="$1" + +# Fail if the branch is dirty. +git diff --exit-code + +echo "$version" > "$ROSE_ROOT/rose/.version" +git add . +git +git tag "$version" HEAD +git push origin "$version" +git checkout release +git reset --hard "$version" +git push --force