File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change 6363 - name : Run release
6464 env :
6565 RELEASE_BUCKET : ${{ secrets.RELEASE_BUCKET }}
66- PUBLISHING_ROLE_ARN : ${{ secrets.PUBLISHING_ROLE_ARN }} # TODO: REMOVE
6766 run : |
6867 ./scripts/release.sh
6968
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33[ -z " $RELEASE_BUCKET " ] && { echo " RELEASE_BUCKET environment variable not set" ; exit 1; }
4- [ -z " $PUBLISHING_ROLE_ARN " ] && { echo " PUBLISHING_ROLE_ARN environment variable not set" ; exit 1; } # TODO: REMOVE
54
65VERSION=$( git describe --tags --abbrev=0)
76HEAD_COMMIT=$( git rev-parse HEAD)
1413
1514echo " most recent tag: $VERSION (sha=$VERSION_COMMIT )"
1615
17- SESSION_CREDS=$( aws sts assume-role --role-arn $PUBLISHING_ROLE_ARN --role-session-name publish-aws-kotlin-repo-tools)
18- export AWS_ACCESS_KEY_ID=$( echo " ${SESSION_CREDS} " | jq -r ' .Credentials.AccessKeyId' )
19- export AWS_SECRET_ACCESS_KEY=$( echo " ${SESSION_CREDS} " | jq -r ' .Credentials.SecretAccessKey' )
20- export AWS_SESSION_TOKEN=$( echo " ${SESSION_CREDS} " | jq -r ' .Credentials.SessionToken' )
2116export RELEASE_S3_URL=" s3://$RELEASE_BUCKET /releases"
2217
2318TEST_KEY=" releases/aws/sdk/kotlin/build-plugins/$VERSION /build-plugins-$VERSION .jar"
You can’t perform that action at this time.
0 commit comments