JPushover11/release.sh
2023-07-19 10:41:39 +02:00

19 lines
285 B
Bash
Executable File

#!/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