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 2f83a5d commit 81c22a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- 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 s3 sync htdocs s3://docs.gl --delete --content-type text/html
- run: 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 81c22a5

Please sign in to comment.