From 219b2565eda9bd005b8494262be9838550a9a643 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Mon, 7 Jun 2021 13:55:24 +0200 Subject: [PATCH] WIP --- release.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/release.sh b/release.sh index 5a61e82..374b634 100755 --- a/release.sh +++ b/release.sh @@ -5,8 +5,16 @@ set -o errexit export DEV_VERSION="${DEV_VERSION:?You must set the next dev version}" export RELEASE_VERSION="${RELEASE_VERSION:?You must set the next release version}" -echo "Will release [${RELEASE_VERSION}] and then bump to dev version [${DEV_VERSION}]" -git fetch --tags && \ - ./mvnw -B -Dtag=v"${RELEASE_VERSION}" release:clean release:prepare -DreleaseVersion="${RELEASE_VERSION}" -DdevelopmentVersion="${DEV_VERSION}" && \ - ./mvnw -B -Dtag=v"${RELEASE_VERSION}" -DreleaseVersion="${RELEASE_VERSION}" -DdevelopmentVersion="${DEV_VERSION}" -Dgoals=deploy release:perform -Pcentral && \ - git push origin main --tags \ No newline at end of file +echo "[RELEASE] Will release [${RELEASE_VERSION}] and then bump to dev version [${DEV_VERSION}]" + +echo "[RELEASE] Fetching tags..." +git fetch --tags + +echo "[RELEASE] Preparing for the release..." +./mvnw -B -Dtag=v"${RELEASE_VERSION}" release:clean release:prepare -DreleaseVersion="${RELEASE_VERSION}" -DdevelopmentVersion="${DEV_VERSION}" + +echo "[RELEASE] Doing the actual release..." + ./mvnw -B -Dtag=v"${RELEASE_VERSION}" -DreleaseVersion="${RELEASE_VERSION}" -DdevelopmentVersion="${DEV_VERSION}" -Dgoals=deploy release:perform -Pcentral + +echo "[RELEASE] Pushing tags..." +git push origin main --tags \ No newline at end of file