Created
February 28, 2019 03:27
-
-
Save cpave3/cbc78e32f4b242cd1910c65498a663ee to your computer and use it in GitHub Desktop.
Example Travis file for deploying a react SPA to surge.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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