Skip to content

Instantly share code, notes, and snippets.

Created Jan 14, 2019
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 ../ ./*
cd ..
curl -H "Content-Type: application/zip" \
-H "Authorization: Bearer $NETLIFY_TOKEN" \
--data-binary "" \$NETLIFY_SITE/deploys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment