Skip to content

Commit

Permalink
Use --delete to remove old files (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin authored Nov 16, 2023
1 parent 9e08a97 commit c0f2aee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '/*'
2 changes: 1 addition & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '/*'

0 comments on commit c0f2aee

Please sign in to comment.