Adding more flexible deploy script

This commit is contained in:
Jeff Avallone
2018-05-27 13:45:26 -04:00
parent 4685337599
commit 25197b9abd
5 changed files with 152 additions and 8 deletions
+1 -4
View File
@@ -39,10 +39,7 @@ jobs:
- run:
name: Deploy to S3
command: |
sudo apt-get -y -qq install awscli
aws s3 sync build s3://$DEPLOY_BUCKET/ --delete
aws s3api copy-object --copy-source $DEPLOY_BUCKET/service-worker.js --bucket $DEPLOY_BUCKET --key service-worker.js --metadata-directive REPLACE --cache-control "max-age=0" --content-type "application/javascript"
command: yarn deploy
workflows:
version: 2