Skip to content

Commit

Permalink
Fix path error for Dev S3 bucket sync
Browse files Browse the repository at this point in the history
  • Loading branch information
gMonty030 committed Jan 14, 2025
1 parent 9e7c5a1 commit a5d2ffc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
- name: 'Deploy to S3: Dev'
if: github.ref == 'refs/heads/master'
run: |
aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }} --delete --exclude "*.html" --cache-control max-age=86400,public
aws s3 sync build/ s3://${{ secrets.DEV_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.DEV_BUCKET_NAME }}/current --delete --exclude "*.html" --cache-control max-age=86400,public
aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/current --delete --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html
- name: 'Cloudfront Production: cache invalidation'
if: (startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'release')
Expand All @@ -67,5 +67,6 @@ jobs:
# Script to upload release files
- name: 'Upload release build files for staging'
if: github.event.action == 'published'
run: aws s3 sync out s3://${{ secrets.DEV_BUCKET_NAME }}/releases/${{ steps.get_version.outputs.VERSION }} --delete

run: |
aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/releases/${{ steps.get_version.outputs.VERSION }} --delete --exclude "*.html" --cache-control max-age=86400,public
aws s3 sync build/ s3://${{ secrets.DEV_BUCKET_NAME }}/releases/${{ steps.get_version.outputs.VERSION }} --delete --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html

0 comments on commit a5d2ffc

Please sign in to comment.