diff --git a/.github/workflows/dev_ci.yml b/.github/workflows/dev_ci.yml index fbe3646..083112e 100644 --- a/.github/workflows/dev_ci.yml +++ b/.github/workflows/dev_ci.yml @@ -56,7 +56,7 @@ jobs: run: | aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/dev --exclude "*.html" --cache-control max-age=0,no-cache,no-store,public aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/dev --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html - aws s3 sync data/ s3://${{ secrets.DEV_BUCKET_NAME }}/dev + aws s3 sync data s3://${{ secrets.DEV_BUCKET_NAME }}/dev --delete # Script to deploy to staging environment - name: 'Deploy to S3: Staging' @@ -64,4 +64,4 @@ jobs: run: | aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/main --exclude "*.html" --cache-control max-age=0,no-cache,no-store,public aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/main --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html - aws s3 sync data/ s3://${{ secrets.DEV_BUCKET_NAME }}/main \ No newline at end of file + aws s3 sync data s3://${{ secrets.DEV_BUCKET_NAME }}/main --delete \ No newline at end of file diff --git a/.github/workflows/prod_deploy.yml b/.github/workflows/prod_deploy.yml index ee47ef1..7213f7c 100644 --- a/.github/workflows/prod_deploy.yml +++ b/.github/workflows/prod_deploy.yml @@ -67,7 +67,7 @@ jobs: aws s3 sync build/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete --exclude "*.html" --exclude "sitemap.xml" --cache-control max-age=86400,public aws s3 sync build/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html aws s3 sync build/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete --exclude "*" --include "sitemap.xml" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/xml - aws s3 sync data/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete + aws s3 sync data s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete notify: uses: ./.github/workflows/slack_release_notification.yml