-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
set -ex | ||
|
||
# Check if necessary tools are installed | ||
if ! command -v git &> /dev/null || ! command -v cargo &> /dev/null; then | ||
if ! command -v git &>/dev/null || ! command -v cargo &>/dev/null; then | ||
echo "ERROR: Required tools (git, cargo) are not installed." | ||
exit 1 | ||
fi | ||
|
@@ -11,7 +11,7 @@ git config --global user.email "[email protected]" | |
git config --global user.name "Automated Release Test" | ||
|
||
# Ensure cargo-release is installed | ||
if ! cargo release --version &> /dev/null; then | ||
if ! cargo release --version &>/dev/null; then | ||
echo "ERROR: cargo release must be installed." | ||
exit 1 | ||
fi | ||
|
@@ -23,12 +23,11 @@ fi | |
cargo release version --verbose --execute --no-confirm --allow-branch '*' --workspace --exclude zebrad --exclude zebra-scan --exclude zebra-grpc patch | ||
|
||
# Due to a bug in cargo-release, we need to pass exact versions for alpha crates: | ||
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-scan 0.1.0-alpha.9 | ||
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.7 | ||
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-scan 0.1.0-alpha.10 | ||
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.8 | ||
|
||
# Update zebrad: | ||
# TODO: Revert `2.0.0-rc.0` to `patch` in the next release candidate. | ||
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebrad 2.0.0-rc.0 | ||
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebrad patch | ||
# Continue with the release process: | ||
cargo release replace --verbose --execute --no-confirm --allow-branch '*' --package zebrad | ||
cargo release commit --verbose --execute --no-confirm --allow-branch '*' | ||
|