Last active
May 9, 2021 20:17
-
-
Save benjamincharity/c8cc84249c90cd785dee60d9042ffef3 to your computer and use it in GitHub Desktop.
Set up TravisCI to sync an S3 bucket.
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
" 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
@astrotim put the files in 2 different folders, then sync each folder with different options