Skip to content

Commit

Permalink
Add the delete flag to remove old docs in stage and prod (#940)
Browse files Browse the repository at this point in the history
We want to remove files that are in the remote but not source directory,
so that we stop indexing old content.

Tested on dev, this is for stage and prod. 

Note: cleaning up dev took almost 2 hours of action run time, for both
stage and prod we may see some timeouts on deploy.

Docs:

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/sync.html
  • Loading branch information
deroine authored Sep 16, 2024
1 parent 35defb8 commit 3f34975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
- name: Deploy
run: |
aws s3 sync ./build s3://docs-s3.dev-ngrok.com/docs --delete --acl public-read
aws s3 sync ./build s3://docs-s3.stage-ngrok.com/docs --acl public-read
aws s3 sync ./build s3://docs-s3.ngrok.com/docs --acl public-read
aws s3 sync ./build s3://docs-s3.stage-ngrok.com/docs --delete --acl public-read
aws s3 sync ./build s3://docs-s3.ngrok.com/docs --delete --acl public-read

0 comments on commit 3f34975

Please sign in to comment.