From 5062652f6602bc1baafe12f9a407edd8cd374fdc Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Mon, 28 Oct 2024 10:50:57 -0500 Subject: [PATCH] fix: set roles for release (#5) --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbb5029..6374671 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,19 @@ jobs: - name: Commit changes run: | git commit -avm "chore(release): bump version" + - name: Assume role using AWS credentials + uses: aws-actions/configure-aws-credentials@v4.0.2 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ secrets.CDK_DEPLOY_REGION }} - name: Run build + env: + CDK_DEPLOY_ACCOUNT: ${{ secrets.CDK_DEPLOY_ACCOUNT }} + CDK_DEPLOY_REGION: ${{ secrets.CDK_DEPLOY_REGION }} + CDK_DEFAULT_ACCOUNT: ${{ secrets.CDK_DEFAULT_ACCOUNT }} + CDK_DEFAULT_REGION: ${{ secrets.CDK_DEFAULT_REGION }} + AWS_REGION: ${{ secrets.CDK_DEPLOY_REGION }} run: pnpm run ci:gha - name: Run Package run: pnpm run jsii:pacmak:parallel