Skip to content

Commit

Permalink
Add publish-and-tag-crate just recipe (ordinals#2576)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored and lige committed Dec 16, 2023
1 parent f9eae7c commit 8f03063
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f03063

Please sign in to comment.