From 789c2949684b452c4432431623eba5e64e4690eb Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Fri, 1 Mar 2024 06:19:10 +0100 Subject: [PATCH] chore: add make-latest command to justfile to make the most recent crates.io version the latest release on github Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com> --- .justfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.justfile b/.justfile index aea4d4b6..bbd3aa78 100644 --- a/.justfile +++ b/.justfile @@ -152,4 +152,8 @@ insta: # Create a new tag for the current version on crates.io to make cargo-dist create a new release tag-release: git tag -a pace-rs-v$(xh get https://crates.io/api/v1/crates/pace-rs | jq .crate.max_version) - git push origin pace-rs-v$(xh get https://crates.io/api/v1/crates/pace-rs | jq .crate.max_version) \ No newline at end of file + git push origin pace-rs-v$(xh get https://crates.io/api/v1/crates/pace-rs | jq .crate.max_version) + +# Make the most recent version from crates.io the latest release on GitHub +make-latest: + gh release edit pace-rs-v$(xh get https://crates.io/api/v1/crates/pace-rs | jq .crate.max_version) --latest