Skip to content

Commit

Permalink
chore: add make-latest command to justfile to make the most recent cr…
Browse files Browse the repository at this point in the history
…ates.io version the latest release on github

Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Mar 1, 2024
1 parent dde857a commit 789c294
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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

0 comments on commit 789c294

Please sign in to comment.