Skip to content

Commit

Permalink
Work flow fixes for test and prod (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-walsh22 authored Sep 19, 2024
1 parent 64cd09f commit 5b01c8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ jobs:
WORKING_DIRECTORY: "./"
run: |
aws s3 sync dist/$WORKING_DIRECTORY s3://$S3_BUCKET/$DIR_NAME
aws s3 rm s3://$S3_BUCKET/ --recursive --exclude "*" --include "latest/dayuse/*"
aws s3 sync dist/$WORKING_DIRECTORY s3://$S3_BUCKET/latest/dayuse
aws s3 rm s3://$S3_BUCKET/ --recursive --exclude "*" --include "latest/*"
aws s3 sync dist/$WORKING_DIRECTORY s3://$S3_BUCKET/latest/
- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ jobs:
WORKING_DIRECTORY: "./"
run: |
aws s3 sync dist/$WORKING_DIRECTORY s3://$S3_BUCKET/$DIR_NAME
aws s3 rm s3://$S3_BUCKET/ --recursive --exclude "*" --include "latest/dayuse/*"
aws s3 sync dist/$WORKING_DIRECTORY s3://$S3_BUCKET/latest/dayuse
aws s3 rm s3://$S3_BUCKET/ --recursive --exclude "*" --include "latest/*"
aws s3 sync dist/$WORKING_DIRECTORY s3://$S3_BUCKET/latest/
- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
Expand Down

0 comments on commit 5b01c8f

Please sign in to comment.