Skip to content

Instantly share code, notes, and snippets.

@ajmalafif
Forked from benjamincharity/.travis.sync-s3.yml
Created January 17, 2018 06:43
Show Gist options
  • Save ajmalafif/4a45414d7230365467460b55a4fc3eed to your computer and use it in GitHub Desktop.
Save ajmalafif/4a45414d7230365467460b55a4fc3eed to your computer and use it in GitHub Desktop.
Set up TravisCI to sync an S3 bucket.
" Two env variables must be added to TravisCI settings:
" AWS_SECRET_ACCESS_KEY
" AWS_ACCESS_KEY_ID
before_deploy:
pip install --user awscli
deploy:
provider: script
script: ~/.local/bin/aws s3 sync dist s3://MY_BUCKET_NAME --region=us-west-2 --delete
skip_cleanup: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment