corrected travis env var value
@@ -7,7 +7,7 @@ if [[ "${TRAVIS_PULL_REQUEST}" = "false" ]] && [[ "${TRAVIS_BRANCH}" = "master"
cd www
make deploy
else
- if [[ "${TRAVIS_PULL_REQUEST}" = "true" ]] && [[ "${TRAVIS_BRANCH}" = "master" ]]; then
+ if ! [[ "${TRAVIS_PULL_REQUEST}" = "false" ]] && [[ "${TRAVIS_BRANCH}" = "master" ]]; then
echo "We are on a PR or against the master branch. Deploying to Acceptance."
cd www
make build
@@ -16,6 +16,6 @@ else
curl -H "Content-Type: application/zip" \
-H "Authorization: Bearer $NETLIFYKEY" \
--data-binary "@website.zip" \
- https://api.netlify.com/api/v1/sites/habitat-acceptance.netlify.com/deploys
+ --url https://api.netlify.com/api/v1/sites/habitat-acceptance.netlify.com/deploys
fi
fi
