diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 302f8e855..447a06942 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -24,5 +24,5 @@ jobs: aws-access-key-id: ${{ secrets.AWS_S3_PRODUCTION_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_S3_PRODUCTION_SECRET }} aws-region: eu-west-1 - - run: aws s3 sync ./build ${{ secrets.AWS_S3_PRODUCTION_PATH }} + - run: aws s3 sync ./build ${{ secrets.AWS_S3_PRODUCTION_PATH }} --delete - run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_PRODUCTION }} --paths '/*' diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 887de544c..fb98bb586 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -24,5 +24,5 @@ jobs: aws-access-key-id: ${{ secrets.AWS_S3_STAGE_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_S3_STAGE_SECRET }} aws-region: eu-west-1 - - run: aws s3 sync ./build ${{ secrets.AWS_S3_STAGE_PATH }} + - run: aws s3 sync ./build ${{ secrets.AWS_S3_STAGE_PATH }} --delete - run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_STAGE }} --paths '/*'