From cd130d0ce55f441d5d564b376f11b3d0de851838 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 23 Oct 2023 21:05:34 -0700 Subject: [PATCH] Add publish-and-tag-crate recipe --- justfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/justfile b/justfile index 89e14fb004..6bbd24c574 100644 --- a/justfile +++ b/justfile @@ -114,6 +114,20 @@ publish-release revision='master': cd ../.. rm -rf tmp/release +publish-tag-and-crate revision='master': + #!/usr/bin/env bash + set -euxo pipefail + rm -rf tmp/release + git clone git@github.com:ordinals/ord.git tmp/release + cd tmp/release + git checkout {{revision}} + VERSION=`sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/\1/p' Cargo.toml | head -1` + git tag -a $VERSION -m "Release $VERSION" + git push git@github.com:ordinals/ord.git $VERSION + cargo publish + cd ../.. + rm -rf tmp/release + list-outdated-dependencies: cargo outdated -R cd test-bitcoincore-rpc && cargo outdated -R