Vault/.utility/do-publish.sh
2014-06-24 14:00:49 -07:00

9 lines
276 B
Bash
Executable File

#!/bin/bash
if [[ "$TRAVIS_REPO_SLUG" != "MilkBowl/Vault" || "$TRAVIS_PULL_REQUEST" == "true" || "$TRAVIS_BRANCH" != "master" ]]
then
echo 'Travis can only publish docs for release builds.'
return 0
fi
mvn clean deploy --settings .utility/settings.xml
exit $?