Files
spring-hateoas/ci/create-release.sh
Greg Turnquist e613a230c8 #853 - Polishing.
2019-03-05 10:12:33 -06:00

23 lines
546 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
ISSUE=$1
RELEASE=$2
SNAPSHOT=$3
# Bump up the version in pom.xml to the desired version and commit the change
./mvnw versions:set -DnewVersion=$RELEASE -DgenerateBackupPoms=false
git add .
git commit --message "$ISSUE - Releasing Spring HATEOAS $RELEASE."
# Tag the release
git tag -s $RELEASE -m "$RELEASE"
# Bump up the version in pom.xml to the next snapshot
./mvnw versions:set -DnewVersion=$SNAPSHOT -DgenerateBackupPoms=false
git add .
git commit --message "$ISSUE - Continue development on $SNAPSHOT."