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