aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/justfile b/justfile
index 5a23d395..6d72748a 100644
--- a/justfile
+++ b/justfile
@@ -37,7 +37,7 @@ release version:
sed -i.bak 's/^version = ".*"/version = "{{version}}"/' Cargo.toml && rm -f Cargo.toml.bak
cargo test --quiet
git add Cargo.toml Cargo.lock
- git commit -m "release: v{{version}}"
+ git diff --cached --quiet || git commit -m "release: v{{version}}"
git tag v{{version}}
git push --follow-tags
@echo "v{{version}} released — GitHub Actions building binaries"