#!/bin/bash

if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'develop' ]]
then
  mvn deploy -DskipTests --settings settings.xml -Prelease
fi

if [[ $TRAVIS_BRANCH == 'master' ]]
then
  git config credential.helper "store --file=.git/credentials"
  echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials
  mvn site -Prelease
fi
#!/bin/bash

if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'develop' ]]
then
  echo "Deploying Jar to Maven Central"
  mvn deploy -DskipTests --settings settings.xml -Prelease
else
  echo "Not deploying jar"
fi

if [[ $TRAVIS_BRANCH == 'master' ]]
then
  echo "Building Maven Site and deploying to GitHub pages"
  git config credential.helper "store --file=.git/credentials"
  echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials
  mvn site -Prelease
fi
Add some logging to the Travis post-success script as the SNAPSHOT jar isn't getting deployed to Maven Central
Add some logging to the Travis post-success script as the SNAPSHOT jar isn't getting deployed to Maven Central
