Skip to content

Commit 140da0a

Browse files
committed
Make the fetch worker available at the project root
This isn't ideal as our other assets are segmented by directory, however it is safe because the file has a content hash from webpack so shouldn't conflict. It would be good to update Scratch to load this file from the expected location, but I would like to get a version working first so we are not dependent on using a fork or getting a changed merged. There are other images that are also broken, but will address that in a different issue
1 parent 49bd64d commit 140da0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ jobs:
151151

152152
- name: Deploy site to S3 bucket
153153
if: env.AWS_SECRET_ACCESS_KEY != ''
154-
run: aws s3 sync ./build/ s3://${{ secrets.AWS_S3_BUCKET }}/${{ needs.setup-environment.outputs.deploy_dir }} --endpoint ${{ secrets.AWS_ENDPOINT }}
154+
run: |
155+
aws s3 sync ./build/ s3://${{ secrets.AWS_S3_BUCKET }}/${{ needs.setup-environment.outputs.deploy_dir }} --endpoint ${{ secrets.AWS_ENDPOINT }}
156+
aws s3 sync ./build/chunks/ s3://${{ secrets.AWS_S3_BUCKET }}/chunks/ --endpoint ${{ secrets.AWS_ENDPOINT }} --exclude "*" --include "fetch-worker*"
155157
env:
156158
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
157159
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)