publish.sh 469 B

12345678910
  1. #!/bin/bash
  2. if [ ! -z "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
  3. openssl aes-256-cbc -pass pass:$ENCRYPTION_PASSWORD -in $GPG_DIR/pubring.gpg.enc -out $GPG_DIR/pubring.gpg -d
  4. openssl aes-256-cbc -pass pass:$ENCRYPTION_PASSWORD -in $GPG_DIR/secring.gpg.enc -out $GPG_DIR/secring.gpg -d
  5. mvn deploy --settings $GPG_DIR/settings.xml -DperformRelease=true -DskipTests=true
  6. exit $?
  7. else
  8. echo "This will not deploy because its not a release!"
  9. fi