Skip to content

Commit

Permalink
Handle maintenance releases in release-cli.sh
Browse files Browse the repository at this point in the history
The goal of this change is to not push maintenance branches to the main
branch of the Homebrew repository. I'm unsure this will work though as
it doesn't seem to work for Chocolatey.

(cherry picked from commit 6461725)
  • Loading branch information
gsmet committed Nov 1, 2022
1 parent 89052d9 commit 963cb50
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion devtools/cli/distribution/release-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ then
exit 1
fi

MAINTENANCE="$3"
if [ -z "$MAINTENANCE" ]
then
echo "Must specify maintenance mode"
exit 1
fi

DIST_DIR="$( dirname "${BASH_SOURCE[0]}" )"
pushd ${DIST_DIR}

Expand Down Expand Up @@ -43,7 +50,10 @@ popd

export JRELEASER_PROJECT_VERSION=${VERSION}
export JRELEASER_BRANCH=${BRANCH}
export JRELEASER_CHOCOLATEY_GITHUB_BRANCH=${BRANCH}
if [ "$MAINTENANCE" == "true" ]; then
export JRELEASER_CHOCOLATEY_GITHUB_BRANCH=${BRANCH}
export JRELEASER_HOMEBREW_GITHUB_BRANCH=${BRANCH}
fi

jbang org.jreleaser:jreleaser:1.3.0 full-release \
--git-root-search \
Expand Down

0 comments on commit 963cb50

Please sign in to comment.