diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6515d2e..a44b4eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,19 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-node- + - 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