Skip to content

Commit 262ad2d

Browse files
committed
ci: fix content type for pagefind fragments
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
1 parent 77645c2 commit 262ad2d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,22 @@ jobs:
8787
aws --region ${{ env.DOCS_AWS_REGION }} s3 sync \
8888
--delete \
8989
--exclude "*.webp" \
90+
--exclude "pagefind/*.pf_meta" \
91+
--exclude "pagefind/fragment/*.pf_fragment" \
9092
public s3://${{ env.DOCS_S3_BUCKET }}/
93+
-
94+
name: Upload pagefind files with compression headers
95+
if: ${{ env.DOCS_S3_BUCKET != '' }}
96+
run: |
97+
aws --region ${{ env.DOCS_AWS_REGION }} s3 cp \
98+
--recursive \
99+
--content-encoding="gzip" \
100+
--content-type="application/octet-stream" \
101+
--metadata-directive="REPLACE" \
102+
public/pagefind/ s3://${{ env.DOCS_S3_BUCKET }}/pagefind/ \
103+
--exclude "*" \
104+
--include "*.pf_meta" \
105+
--include "*.pf_fragment"
91106
-
92107
name: Update Cloudfront config
93108
if: ${{ env.DOCS_CLOUDFRONT_ID != '' }}

0 commit comments

Comments
 (0)