adjust deploy script conditionals based on poking around with travis build environment variables.
set -e
# Print Travis environment variables.
-echo "TRAVIS_PULL_REQUEST: ${TRAVIS_PULL_REQUEST}."
-echo "TRAVIS_TAG: ${TRAVIS_TAG}."
-echo "TRAVIS_BRANCH: ${TRAVIS_BRANCH}."
+echo "TRAVIS_PULL_REQUEST: ${TRAVIS_PULL_REQUEST}"
+echo "TRAVIS_TAG: ${TRAVIS_TAG}"
+echo "TRAVIS_BRANCH: ${TRAVIS_BRANCH}"
# Only act if this is build was fired from a push to master.
-if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_TAG}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]
+if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ -z "${TRAVIS_TAG}" ] && [ "${TRAVIS_BRANCH}" = "master" ] && [ -n "${gh_bot_token+isset}" ]
then
# Configure git user.
setup_git() {
