From 473bb25061ece113205b5ff5d6f09182b495d7dd Mon Sep 17 00:00:00 2001 From: gak Date: Wed, 30 Aug 2023 15:54:22 +1000 Subject: [PATCH] feat: release easier --- justfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/justfile b/justfile index 83549a6..35e6a5b 100644 --- a/justfile +++ b/justfile @@ -10,3 +10,13 @@ token_tests: cargo run -- api vehicles cargo run --no-default-features --features cli -- api vehicles cargo run -- api energy-sites + +publish version: + sed -i "s/^version = \".*\"$/version = \"{{version}}\"/" Cargo.toml + + git add Cargo.toml + git commit -m "chore: v{{version}}" + git tag "v{{version}}" + git push origin "v{{version}}" + + cargo publish