aboutsummaryrefslogtreecommitdiff
path: root/maintainers
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-28 19:59:14 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-28 19:59:14 +0000
commit8017fe7487ff545ac7be68bd7b339fffffa12b8f (patch)
treef9e5f5fec9acc96ae66d7369d42803344866facd /maintainers
parent3a7b330b64c6ea77e18a0a96aad7fb14947382d9 (diff)
parentf15651303f8596bf34c67fc8d536b1e9e7843a87 (diff)
Merge remote-tracking branch 'upstream/master' into single-ca-drv-build
Diffstat (limited to 'maintainers')
-rwxr-xr-xmaintainers/upload-release.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/maintainers/upload-release.pl b/maintainers/upload-release.pl
index 91ae896d6..6f3882a12 100755
--- a/maintainers/upload-release.pl
+++ b/maintainers/upload-release.pl
@@ -117,7 +117,16 @@ for my $fn (glob "$tmpDir/*") {
my $dstKey = "$releaseDir/" . $name;
unless (defined $releasesBucket->head_key($dstKey)) {
print STDERR "uploading $fn to s3://$releasesBucketName/$dstKey...\n";
- $releasesBucket->add_key_filename($dstKey, $fn)
+
+ my $configuration = ();
+ $configuration->{content_type} = "application/octet-stream";
+
+ if ($fn =~ /.sha256|.asc|install/) {
+ # Text files
+ $configuration->{content_type} = "text/plain";
+ }
+
+ $releasesBucket->add_key_filename($dstKey, $fn, $configuration)
or die $releasesBucket->err . ": " . $releasesBucket->errstr;
}
}