mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
ci: fix content type for pagefind fragments
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
15
.github/workflows/deploy.yml
vendored
15
.github/workflows/deploy.yml
vendored
@@ -87,7 +87,22 @@ jobs:
|
||||
aws --region ${{ env.DOCS_AWS_REGION }} s3 sync \
|
||||
--delete \
|
||||
--exclude "*.webp" \
|
||||
--exclude "pagefind/*.pf_meta" \
|
||||
--exclude "pagefind/fragment/*.pf_fragment" \
|
||||
public s3://${{ env.DOCS_S3_BUCKET }}/
|
||||
-
|
||||
name: Upload pagefind files with compression headers
|
||||
if: ${{ env.DOCS_S3_BUCKET != '' }}
|
||||
run: |
|
||||
aws --region ${{ env.DOCS_AWS_REGION }} s3 cp \
|
||||
--recursive \
|
||||
--content-encoding="gzip" \
|
||||
--content-type="application/octet-stream" \
|
||||
--metadata-directive="REPLACE" \
|
||||
public/pagefind/ s3://${{ env.DOCS_S3_BUCKET }}/pagefind/ \
|
||||
--exclude "*" \
|
||||
--include "*.pf_meta" \
|
||||
--include "*.pf_fragment"
|
||||
-
|
||||
name: Update Cloudfront config
|
||||
if: ${{ env.DOCS_CLOUDFRONT_ID != '' }}
|
||||
|
||||
Reference in New Issue
Block a user