Skip to content

Commit

Permalink
Maybe if we manually set the content type for particular file types
Browse files Browse the repository at this point in the history
  • Loading branch information
BSVino committed Nov 18, 2021
1 parent 295f2a7 commit 2f83a5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- run: aws s3 sync htdocs s3://docs.gl --delete --no-guess-mime-type
- run: |
aws s3 sync htdocs s3://docs.gl --delete --content-type text/html
aws s3 cp s3://docs.gl/ s3://docs.gl/ --exclude '*' --include '*.zip' --no-guess-mime-type --content-type="application/zip" --metadata-directive="REPLACE" --recursive
- run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DOCSGL_DISTRIBUTION_ID }} --paths /*

0 comments on commit 2f83a5d

Please sign in to comment.