Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Jun 7, 2021
1 parent 96abe1a commit 219b256
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit 219b256

Please sign in to comment.