Skip to content
Browse files

Travis build should fail if decryption is unsuccessful

  • Loading branch information...
abhinayagarwal committed Jul 21, 2019
1 parent 5d00440 commit 6847ebfa2035da67b9cf4759e479917a34878ffb
Showing with 5 additions and 0 deletions.
  1. +5 −0 .ci/
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

openssl aes-256-cbc -K $encrypted_ad8c90635771_key -iv $encrypted_ad8c90635771_iv -in .ci/sonatype.gpg.enc -out sonatype.gpg -d
if [[ ! -s sonatype.gpg ]]
then echo "Decryption failed."
exit 1

./gradlew uploadPublished --info -PsonatypeUsername=$SONATYPE_USERNAME -PsonatypePassword=$SONATYPE_PASSWORD -Psigning.keyId=$GPG_KEY_ID -Psigning.password=$GPG_KEY_PASSPHRASE -Psigning.secretKeyRingFile=/home/travis/build/controlsfx/controlsfx/sonatype.gpg

0 comments on commit 6847ebf

Please sign in to comment.
You can’t perform that action at this time.