about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-29 22:04:02 +0200
committerAlan Pearce2024-06-29 22:04:02 +0200
commit6e61903c1e3c3d37576e87274825b1c99fcf6a49 (patch)
tree5e64cd69f3c6d9193c086ec9bfdec32e50c7cb29
parent1b59c4dd9cd2303baa97dca1c5d85696f9945356 (diff)
downloadsearchix-6e61903c1e3c3d37576e87274825b1c99fcf6a49.tar.lz
searchix-6e61903c1e3c3d37576e87274825b1c99fcf6a49.tar.zst
searchix-6e61903c1e3c3d37576e87274825b1c99fcf6a49.zip
build: add command to cut a release
-rw-r--r--justfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/justfile b/justfile
index efe492d..fbfbc2e 100644
--- a/justfile
+++ b/justfile
@@ -30,11 +30,19 @@ fix:
 precommit:
 	nix-build -A pre-commit-check
 
+clean-workdir:
+	git diff --no-ext-diff --quiet
+
 changelog:
 	convco changelog -u $(convco version --bump) | \
 		sd -F HEAD $(convco version --print-prefix --bump) | \
 		prettier --stdin-filepath CHANGELOG.md > CHANGELOG.md
 
+release: clean-workdir changelog
+	git add CHANGELOG.md
+	git commit -m "chore: release $(convco version --bump)"
+	git tag $(convco version --bump --print-prefix)
+
 dev:
 	modd