Skip to content

Instantly share code, notes, and snippets.

@crazko
Created Jan 14, 2019
Embed
What would you like to do?
Shell script run from Travis to perform a deploy to Netlify via zip file
#!/usr/bin/env bash
set -e
cd dist
zip -r ../site.zip ./*
cd ..
curl -H "Content-Type: application/zip" \
-H "Authorization: Bearer $NETLIFY_TOKEN" \
--data-binary "@site.zip" \
https://api.netlify.com/api/v1/sites/$NETLIFY_SITE/deploys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment