File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ set -ex
17
17
# - `update-api` to update the scaladoc api symlinks
18
18
# In all of the above modes, the `version` needs to be specified.
19
19
#
20
- # before_install:
21
- # - export version=2.12.4
22
- # - export mode=archives
20
+ # before_install: export version=2.12.N mode=release
23
21
24
22
25
23
# Encryping files (if you need to encrypt a new file but no longer have the secret, create a new
Original file line number Diff line number Diff line change @@ -20,22 +20,13 @@ mappings in upload := Seq()
20
20
21
21
upload := {
22
22
import com .amazonaws .{ClientConfiguration , Protocol }
23
- import com .amazonaws .auth .{ BasicAWSCredentials , AWSStaticCredentialsProvider , DefaultAWSCredentialsProviderChain }
23
+ import com .amazonaws .auth .DefaultAWSCredentialsProviderChain
24
24
import com .amazonaws .services .s3 .AmazonS3ClientBuilder
25
25
import com .amazonaws .services .s3 .model .PutObjectRequest
26
26
import com .amazonaws .regions .Regions
27
27
28
- def env (v : String ) = {
29
- val r = System .getenv(v)
30
- assert(r != null , s " Credentials env not specified: $v" )
31
- r
32
- }
33
-
34
- val awsCreds = new BasicAWSCredentials (env(" AWS_ACCESS_KEY_ID" ), env(" AWS_SECRET_ACCESS_KEY" ))
35
- val client = AmazonS3ClientBuilder .standard
36
- .withCredentials(new AWSStaticCredentialsProvider (awsCreds))
37
- .withRegion(Regions .US_EAST_1 )
38
- .build
28
+ // The standard client picks credentials from AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY env vars
29
+ val client = AmazonS3ClientBuilder .standard.withRegion(Regions .US_EAST_1 ).build
39
30
40
31
val log = streams.value.log
41
32
You can’t perform that action at this time.
0 commit comments