Skip to content

Instantly share code, notes, and snippets.

@cpave3
Created February 28, 2019 03:27
Show Gist options
  • Save cpave3/cbc78e32f4b242cd1910c65498a663ee to your computer and use it in GitHub Desktop.
Save cpave3/cbc78e32f4b242cd1910c65498a663ee to your computer and use it in GitHub Desktop.
Example Travis file for deploying a react SPA to surge.sh
language: node_js
node_js:
- "stable"
cache:
directories:
- node_modules
script:
- npm run build
deploy:
provider: surge
project: ./build/
domain: <sub_domain>.surge.sh
skip_cleanup: true
on:
branch: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment