From 3e39e5d6db15b3ba788cf3ac8f5ef683f1c1b28a Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 4 Jul 2023 09:33:42 +1000 Subject: [PATCH] In CI, allow any branch and provide a fake previous tag name --- .github/workflows/release-crates-io.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-crates-io.yml b/.github/workflows/release-crates-io.yml index 7879a3f7b75..42dd5fc04e3 100644 --- a/.github/workflows/release-crates-io.yml +++ b/.github/workflows/release-crates-io.yml @@ -99,13 +99,13 @@ jobs: set -ex git config --global user.email "release-tests-no-reply@zfnd.org" git config --global user.name "Automated Release Test" - cargo release version --verbose --execute --no-confirm --workspace --exclude zebra-consensus --exclude zebra-utils --exclude zebrad beta - cargo release commit --verbose --execute --no-confirm - cargo release --no-publish --no-verify --no-tag --no-push --verbose --execute --no-confirm --dependent-version fix --package zebra-consensus --package zebra-utils beta - cargo release --no-publish --no-verify --no-tag --no-push --verbose --execute --no-confirm --dependent-version fix --package zebrad patch - cargo release replace --verbose --execute --no-confirm --package zebrad - cargo release commit --verbose --execute --no-confirm - cargo release publish --verbose --dry-run --workspace + cargo release version --verbose --execute --no-confirm --allow-branch '*' --workspace --exclude zebra-consensus --exclude zebra-utils --exclude zebrad beta + cargo release commit --verbose --execute --no-confirm --allow-branch '*' + cargo release --no-publish --no-verify --no-tag --no-push --verbose --execute --no-confirm --allow-branch '*' --prev-tag-name HEAD --dependent-version fix --package zebra-consensus --package zebra-utils beta + cargo release --no-publish --no-verify --no-tag --no-push --verbose --execute --no-confirm --allow-branch '*' --prev-tag-name HEAD --dependent-version fix --package zebrad patch + cargo release replace --verbose --execute --no-confirm --allow-branch '*' --package zebrad + cargo release commit --verbose --execute --no-confirm --allow-branch '*' + cargo release publish --verbose --dry-run --allow-branch '*' --workspace # TODO: actually do the release here