diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2024-11-30 13:20:05 +0100 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2024-11-30 13:20:27 +0100 |
| commit | 8fdd2e8bd6cefdce2c37794ba059a8d9aa39a999 (patch) | |
| tree | 4f01c4e1f1a92b8eeb6e0f44dfcbcb01543775af /justfile | |
| parent | chore: disable session resurrection in test config (diff) | |
| download | sl0pstatus-8fdd2e8bd6cefdce2c37794ba059a8d9aa39a999.tar.gz sl0pstatus-8fdd2e8bd6cefdce2c37794ba059a8d9aa39a999.tar.xz sl0pstatus-8fdd2e8bd6cefdce2c37794ba059a8d9aa39a999.zip | |
chore: automatically set version
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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" |
