Added release script
This commit is contained in:
parent
7e6cc8e1bb
commit
42dd11678a
18
release.sh
Executable file
18
release.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
mvn versions:set
|
||||
STATUS=$?
|
||||
if [ $STATUS -ne 0 ]; then
|
||||
echo "Failed to set new version!"
|
||||
else
|
||||
mvn clean deploy -Prelease
|
||||
STATUS=$?
|
||||
if [ $STATUS -ne 0 ]; then
|
||||
echo "Failed to release!"
|
||||
else
|
||||
mvn release:update-versions
|
||||
fi
|
||||
fi
|
||||
|
||||
rm pom.xml.versionsBackup
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user