Skip to content

Commit 10a2660

Browse files
committed
Add support for hdr files
1 parent f36f546 commit 10a2660

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

dist/index.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
env 'INPUT_BUCKET=badsyntax-github-action-example-aws-s3-us-east-1' \
44
env 'INPUT_ACTION=sync' \
5-
env 'INPUT_FILES-GLOB=**/*.css' \
5+
env 'INPUT_FILES-GLOB={site-assets,css,img}/**/*' \
66
env 'INPUT_SRC-DIR=./test-fixtures' \
77
env 'INPUT_AWS-REGION=us-east-1' \
88
env 'INPUT_PREFIX=preview' \

src/s3.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ import { minimatch } from 'minimatch';
2121
import { workspace } from './github.js';
2222
import { AsyncBatchQueue } from './AsyncBatchQueue.js';
2323

24+
// Add missing mime types that aren't supported by the 'mime-types' package
25+
mime.extensions['image/vnd.radiance'] = ['hdr'];
26+
mime.types['hdr'] = 'image/vnd.radiance';
27+
2428
export type S3ObjectPrefix = string;
2529

2630
function getTimeString(time: [number, number]) {

0 commit comments

Comments
 (0)