Skip to content

Instantly share code, notes, and snippets.

@trevorblades
Created October 29, 2018 21:01
Show Gist options
  • Save trevorblades/993ca1b2f83ee6964e56987a92d0a0bc to your computer and use it in GitHub Desktop.
Save trevorblades/993ca1b2f83ee6964e56987a92d0a0bc to your computer and use it in GitHub Desktop.
language: node_js
node_js: 8
cache:
directories:
- node_modules
before_deploy:
- npm run build
deploy:
provider: s3
region: us-west-2
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: my-cool-bucket-name
local_dir: dist
upload-dir: $TRAVIS_BRANCH
skip_cleanup: true
on:
all_branches: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment