diff --git a/lib/deployment/deploy.sh b/lib/deployment/deploy.sh index e1dbafa96..1e60efab2 100755 --- a/lib/deployment/deploy.sh +++ b/lib/deployment/deploy.sh @@ -110,10 +110,6 @@ function main { helpAndExit 1 fi - if [[ -z "$debug" && (-z "$encrypted_57343c8b243e_key" || -z "$encrypted_57343c8b243e_iv") ]]; then - echo "you are not travis or travis does not have the correct encryption key and iv" >&2 - exit 1 - fi if [[ "$TRAVIS_REPO_SLUG" != "$reqRepo" ]]; then echo "Skipping release to sonatype because this repo's name does not match with: $reqRepo" @@ -125,6 +121,11 @@ function main { exit 0 fi + if [[ -z "$debug" && (-z "$encrypted_57343c8b243e_key" || -z "$encrypted_57343c8b243e_iv") ]]; then + echo "you are not travis or travis does not have the correct encryption key and iv" >&2 + exit 1 + fi + if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then local parent_dir="$1" local profile="release"