From ade5eee599aa25e53ce987ce3dad83bbb614de10 Mon Sep 17 00:00:00 2001 From: Tim McMackin Date: Thu, 16 Nov 2023 10:52:44 -0500 Subject: [PATCH] Revert "Clean output folder before copying contents from build output (#168)" This reverts commit f001b437ff4529b40fd33a3d6dc6da811409cadc. --- .github/workflows/deploy-production.yml | 1 - .github/workflows/deploy-staging.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 4298e4b2c..302f8e855 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -24,6 +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 rm ${{ secrets.AWS_S3_STAGE_PATH }}/* - run: aws s3 sync ./build ${{ secrets.AWS_S3_PRODUCTION_PATH }} - 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 3ecb27c00..887de544c 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -24,6 +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 rm ${{ secrets.AWS_S3_STAGE_PATH }}/* - run: aws s3 sync ./build ${{ secrets.AWS_S3_STAGE_PATH }} - run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_STAGE }} --paths '/*'