Skip to content

Commit 2a9b12b

Browse files
committed
Merge rust-bitcoin#4180: Fix the release script that checks for TBD
fe685b8 Fix the release script that checks for TBD (Jamil Lambert, PhD) Pull request description: `release.sh` is missing `units`. Add `units` to the list of crates to check. Reorder the crates alphabetically. Fix rust-bitcoin#4163 ACKs for top commit: tcharding: ACK fe685b8 Kixunil: ACK fe685b8 apoelstra: ACK fe685b8; successfully ran local tests Tree-SHA512: 0b1ac9610e547f895902ce5d73aa7d2fcdcb319bded3f78e490d3288f177a79c5e2ee354e0481e128dbef0f7b134737422272a615d3bb0fef4f3bd05e5ba4c0a
2 parents 5f1700e + fe685b8 commit 2a9b12b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

contrib/release.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
set -euox pipefail
77

88
main () {
9-
for crate in "internals" "hashes" "bitcoin"; do
9+
for crate in "bitcoin" "hashes" "internals" "units"; do
1010
if release_changes $crate; then
1111
echo "$crate has changes implying this is a release PR, checking if we can publish ..."
1212

@@ -35,12 +35,14 @@ release_changes() {
3535
# We use `set -e` so this will fail the script if the dry-run fails.
3636
publish_dry_run() {
3737
local crate=$1
38-
if [ "$crate" == "hashes" ]; then
38+
if [ "$crate" == "bitcoin" ]; then
39+
cargo publish -p "bitcoin" --dry-run
40+
elif [ "$crate" == "hashes" ]; then
3941
cargo publish -p "bitcoin_hashes" --dry-run
4042
elif [ "$crate" == "internals" ]; then
4143
cargo publish -p "bitcoin-internals" --dry-run
42-
elif [ "$crate" == "bitcoin" ]; then
43-
cargo publish -p "bitcoin" --dry-run
44+
elif [ "$crate" == "units" ]; then
45+
cargo publish -p "bitcoin-units" --dry-run
4446
fi
4547
}
4648

0 commit comments

Comments
 (0)