Skip to content

Commit

Permalink
Fixing deploy workflow OIDC auth
Browse files Browse the repository at this point in the history
  • Loading branch information
mayo committed Jun 12, 2024
1 parent df4bd36 commit 8471dc8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::267326382701:role/ca-oyam_github_actions
role-session-name: GitHub-Action-Role
aws-region: ${{ env.AWS_REGION }}

- name: Download the build artifact
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: public

- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_IAM_ROLE_GITHUB }}
role-session-name: GitHub-Action-Role
aws-region: ${{ env.AWS_REGION }}

- name: Upload Artifact to s3
run: aws s3 sync --acl public-read --delete public/* s3://${{ env.S3_BUCKET }}/

Expand Down

0 comments on commit 8471dc8

Please sign in to comment.