Skip to content

Commit d596044

Browse files
authored
Merge pull request #24104 from dvdksn/fix-pagefind-fragments-contenttype
fix pagefind fragments contenttype
2 parents 1363428 + 37f5011 commit d596044

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)