Skip to content

Commit

Permalink
add bump version script
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Nov 20, 2023
1 parent dbce3b5 commit 6c971bb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bump_version.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6c971bb

Please sign in to comment.