Skip to content

Instantly share code, notes, and snippets.

@theoomoregbee
Last active December 19, 2019 12:34
Show Gist options
  • Save theoomoregbee/fde65767cad6e3c278d9cefd9b9f61d3 to your computer and use it in GitHub Desktop.
Save theoomoregbee/fde65767cad6e3c278d9cefd9b9f61d3 to your computer and use it in GitHub Desktop.
travis s3-deployed-ci-app
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