Skip to content

Commit

Permalink
chore: automatically set version
Browse files Browse the repository at this point in the history
  • Loading branch information
dj95 committed Nov 30, 2024
1 parent b5288bd commit 8fdd2e8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ lint:
cargo audit

# Create and push a new release version.
release version:
cargo set-version {{version}}
release:
#!/usr/bin/env bash
export VERSION="$( git cliff --bumped-version )"
cargo set-version "$VERSION"
direnv exec . cargo build --release
git commit -am "chore: bump version to v{{version}}"
git tag -m "v{{version}}" v{{version}}
git commit -am "chore: bump version to v$VERSION"
git tag -m "v$VERSION" v$VERSION
git push origin main
git push origin "v{{version}}"
git push origin "v$VERSION"

0 comments on commit 8fdd2e8

Please sign in to comment.