From b904072d2dbe5d694e77e84a8a5c0b9bbc8f1ff1 Mon Sep 17 00:00:00 2001 From: mitchelljfs Date: Sat, 21 Jul 2018 01:59:45 -0700 Subject: [PATCH] Minor changes to travis config --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3a773c9..0f16b91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,11 @@ install: script: - "npm run build" - - "aws s3 sync ./build/ s3://mjfs.us --acl public-read" + +deploy: + - "aws s3 sync ./build/ s3://mjfs.us --acl public-read --delete" + +after_deploy: - > aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths /asset-manifest.json /favicon.ico /index.html /manifest.json /service-worker.js