#!/bin/bash

# Only deploy if not PR
if [[ $TRAVIS_PULL_REQUEST = "false" && $TRAVIS_BRANCH = "master" ]]
  then

  zip -qr deploy.zip _site

  curl -H "Content-Type: application/zip" \
    -H "Authorization: Bearer $NETLIFY_ACCESS_TOKEN" \
    --data-binary "@deploy.zip" \
    "https://api.netlify.com/api/v1/sites/$NETLIFY_SITE_ID/deploys"

fi

#!/bin/bash

# Only deploy if not PR
if [[ $TRAVIS_PULL_REQUEST = "false" && $TRAVIS_BRANCH = "master" ]]
  then

  zip -r deploy.zip _site

  curl -H "Content-Type: application/zip" \
    -H "Authorization: Bearer $NETLIFY_ACCESS_TOKEN" \
    --data-binary "@deploy.zip" \
    "https://api.netlify.com/api/v1/sites/$NETLIFY_SITE_ID/deploys"

fi

--- 
+++ 
@@ -4,7 +4,7 @@
 if [[ $TRAVIS_PULL_REQUEST = "false" && $TRAVIS_BRANCH = "master" ]]
   then
 
-  zip -r deploy.zip _site
+  zip -qr deploy.zip _site
 
   curl -H "Content-Type: application/zip" \
     -H "Authorization: Bearer $NETLIFY_ACCESS_TOKEN" \
Reduce log length buy making `zip` shut up
