Skip to content

Commit

Permalink
fix: fix s3 file paths and remove echo statements
Browse files Browse the repository at this point in the history
  • Loading branch information
k80bowman committed Jan 25, 2024
1 parent 742287d commit e6e35cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/upload-to-stampy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ jobs:
# switch AWS identity to the one that can access stampy
run: |
SHA=$(npm view heroku@${{ inputs.version }} --json | jq -r '.gitHead[0:7]')
echo $SHA
FILEBASE=heroku-v${{inputs.version}}-$SHA
echo $FILEBASE
ACCOUNT_ID=$(aws sts get-caller-identity | jq -r '.Account')
TEMP_ROLE=$(aws sts assume-role --role-arn $STAMPY_ARN --role-session-name artifact-signing)
export AWS_ACCESS_KEY_ID=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.AccessKeyId')
export AWS_SECRET_ACCESS_KEY=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SecretAccessKey')
export AWS_SESSION_TOKEN=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SessionToken')
aws s3 cp $FILEBASE-x86.exe $STAMPY_UNSIGNED_BUCKET/$FILEBASE-x86.exe
aws s3 cp $FILEBASE-x64.exe $STAMPY_UNSIGNED_BUCKET/$FILEBASE-x64.exe
aws s3 cp $FILEBASE-x86.exe s3://$STAMPY_UNSIGNED_BUCKET/$FILEBASE-x86.exe
aws s3 cp $FILEBASE-x64.exe s3://$STAMPY_UNSIGNED_BUCKET/$FILEBASE-x64.exe

0 comments on commit e6e35cb

Please sign in to comment.