Skip to content

Commit 96c87a5

Browse files
committed
fix(brew): update ci and brew func for aws
1 parent 08e46e9 commit 96c87a5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ homebrew:
147147
aws_access_key_id = ${AWS_ACCESS_KEY_ID}
148148
aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}
149149
EOF
150+
- export AWS_SDK_LOAD_CONFIG=true
150151
- export AWS_PROFILE=autocloud-iac
151152
script:
152153
- yarn build

release/scripts/homebrew.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async function uploadToS3(file) {
8888
},
8989
})
9090
console.log(credentials)
91-
const S3 = new AWS.S3({ credentials: credentials })
91+
const S3 = new AWS.S3({ credentials: AWS.config.credentials })
9292
S3.putObject({
9393
Bucket: PJSON.oclif.update.s3.bucket,
9494
Key: `cg-v${SHORT_VERSION}/${file}`,

0 commit comments

Comments
 (0)