Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publish-and-tag-crate recipe #2576

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 [email protected]: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 [email protected]: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
Loading