diff --git a/.github/workflows/jsdoc-publish.yml b/.github/workflows/jsdoc-publish.yml index 509c08803f..75bbf9bcaf 100644 --- a/.github/workflows/jsdoc-publish.yml +++ b/.github/workflows/jsdoc-publish.yml @@ -44,7 +44,9 @@ jobs: - name: get-npm-version id: package-version uses: martinbeentjes/npm-get-version-action@master + # --no-mime-magic --guess-mime-type flags to work around CSS incorrect MIME type issue + # (https://stackoverflow.com/questions/53708938/s3cmd-flagging-css-with-wrong-mime-type) - name: Upload versioned docs (for archival) - run: s3cmd put --recursive --acl-public docs/output/realm/${{ steps.package-version.outputs.current-version}}/ s3://${{ secrets.DOCS_S3_BUCKET_NAME }}/realm-sdks/js/${{ steps.package-version.outputs.current-version}}/ + run: s3cmd put --recursive --acl-public --no-mime-magic --guess-mime-type docs/output/realm/${{ steps.package-version.outputs.current-version}}/ s3://${{ secrets.DOCS_S3_BUCKET_NAME }}/realm-sdks/js/${{ steps.package-version.outputs.current-version}}/ - name: Upload latest docs (to live site) - run: s3cmd put --recursive --acl-public docs/output/realm/${{ steps.package-version.outputs.current-version}}/ s3://${{ secrets.DOCS_S3_BUCKET_NAME }}/realm-sdks/js/latest/ + run: s3cmd put --recursive --acl-public --no-mime-magic --guess-mime-type docs/output/realm/${{ steps.package-version.outputs.current-version}}/ s3://${{ secrets.DOCS_S3_BUCKET_NAME }}/realm-sdks/js/latest/