Build with optional publish.

This commit is contained in:
Amine 2018-10-14 15:57:22 +02:00
parent 89d34a1a71
commit 12dc206323

View File

@ -5,6 +5,11 @@ TODAYS_VERSION="1"
VERSION="${BASE_VERSION//./}$(date '+%y%m%j')$TODAYS_VERSION" VERSION="${BASE_VERSION//./}$(date '+%y%m%j')$TODAYS_VERSION"
./version.sh ${VERSION} $@ ./version.sh ${VERSION} $1
if [[ "$@" == *'--publish'* ]]
then
./publish-version.sh ${VERSION} ./publish-version.sh ${VERSION}
else
echo "Did not publish. If you wanted to do so, call the script with \"--publish\"."
fi