Skip to content

Commit

Permalink
Add Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
akubera committed Oct 28, 2024
1 parent d37b480 commit 360496c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# git tasks to start next development version
prepare-dev-version v:
git checkout trunk
gsed -zE -i 's/(name = "bigdecimal"\nversion )= [^\n]*/\1= "{{v}}+dev"/' Cargo.toml Cargo.lock
git add Cargo.toml Cargo.lock
git commit -m 'Begin v{{v}} development'


# git tasks to run to merge trunk into master
prepare-release v:
git checkout trunk
cargo clippy
gsed -zE -i 's/(name = "bigdecimal"\nversion )= [^\n]*/\1= "{{v}}"/' Cargo.toml Cargo.lock
git add Cargo.toml Cargo.lock
git commit -m 'Version {{v}}'
git checkout master
git merge trunk --no-ff -m 'v{{v}}'
# git tag 'v{{v}}'

0 comments on commit 360496c

Please sign in to comment.