aboutsummaryrefslogtreecommitdiffstats
path: root/justfile
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2024-11-30 13:20:05 +0100
committerDaniel Jankowski <daniel.jankowski@rub.de>2024-11-30 13:20:27 +0100
commit8fdd2e8bd6cefdce2c37794ba059a8d9aa39a999 (patch)
tree4f01c4e1f1a92b8eeb6e0f44dfcbcb01543775af /justfile
parentchore: disable session resurrection in test config (diff)
downloadsl0pstatus-8fdd2e8bd6cefdce2c37794ba059a8d9aa39a999.tar.gz
sl0pstatus-8fdd2e8bd6cefdce2c37794ba059a8d9aa39a999.tar.xz
sl0pstatus-8fdd2e8bd6cefdce2c37794ba059a8d9aa39a999.zip
chore: automatically set version
Diffstat (limited to 'justfile')
-rw-r--r--justfile12
1 files changed, 7 insertions, 5 deletions
diff --git a/justfile b/justfile
index 6d6a10f..db84b7c 100644
--- a/justfile
+++ b/justfile
@@ -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"