Last active
December 19, 2019 12:34
-
-
Save theoomoregbee/fde65767cad6e3c278d9cefd9b9f61d3 to your computer and use it in GitHub Desktop.
travis s3-deployed-ci-app
This file contains 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: | |
- '8' | |
before_cache: | |
# awss3-deploy | |
- pip install --user awscli | |
before_deploy: | |
- export BUCKET=s3-deployed-app LOCAL_DIR=build | |
- npm run build | |
deploy: | |
- provider: script | |
skip_cleanup: true | |
script: | |
- export UPLOAD_DIR=development | |
- awss3-deploy | |
on: | |
branch: develop | |
- provider: script | |
skip_cleanup: true | |
script: | |
- export UPLOAD_DIR=staging | |
- awss3-deploy | |
on: | |
branch: master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment