We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1363428 commit 37f5011Copy full SHA for 37f5011
1 file changed
.github/workflows/deploy.yml
@@ -87,7 +87,22 @@ jobs:
87
aws --region ${{ env.DOCS_AWS_REGION }} s3 sync \
88
--delete \
89
--exclude "*.webp" \
90
+ --exclude "pagefind/*.pf_meta" \
91
+ --exclude "pagefind/fragment/*.pf_fragment" \
92
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"
106
-
107
name: Update Cloudfront config
108
if: ${{ env.DOCS_CLOUDFRONT_ID != '' }}
0 commit comments