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