Created
May 23, 2018 02:48
-
-
Save stevekinney/1f7913a2bb3ac5b129fdcc02277c6f76 to your computer and use it in GitHub Desktop.
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: | |
- '8' | |
cache: | |
yarn: true | |
directories: | |
- node_modules | |
script: | |
- yarn test | |
before_deploy: | |
- yarn global add travis-ci-cloudfront-invalidation | |
- yarn run build | |
deploy: | |
provider: s3 | |
access_key_id: $AWS_ACCESS_KEY_ID | |
secret_access_key: $AWS_SECRET_ACCESS_KEY | |
bucket: $S3_BUCKET | |
skip_cleanup: true | |
local-dir: dist | |
on: | |
branch: master | |
after_deploy: | |
- travis-ci-cloudfront-invalidation -a $AWS_ACCESS_KEY_ID -s $AWS_SECRET_ACCESS_KEY -c $CLOUDFRONT_ID -i '/*' -b $TRAVIS_BRANCH -p $TRAVIS_PULL_REQUEST | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment