Skip to content

Commit

Permalink
Configure release process to assume AWS role
Browse files Browse the repository at this point in the history
Signed-off-by: Jota Martos <[email protected]>
  • Loading branch information
jotamartos committed Dec 19, 2023
1 parent 5e54d78 commit 96b6ca8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,21 @@ jobs:
runs-on: ubuntu-20.04
name: Upload
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S3_USER }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_PASSWORD }}
AWS_DEFAULT_REGION: us-east-1
S3_URL: ${{ secrets.S3_URL }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
path: ./artifacts
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-duration-seconds: 1200
role-session-name: MySessionName
- name: Upload to S3 bucket
run: |
set -e
Expand Down

0 comments on commit 96b6ca8

Please sign in to comment.