When deploying via travis, TRAVIS_PULL_REQUEST needs checking against false, as it gets assigned a PR id if it is a pull request. Also try re-generating the key to fix deployment failures