diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aca0e389..abdf4af6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -112,8 +112,12 @@ jobs: with: submodules: recursive - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }} + role-session-name: ${{ github.job }}Session + aws-region: "eu-west-1" - name: Build Concordium Client Image uses: docker/build-push-action@v6 @@ -153,6 +157,14 @@ jobs: with: submodules: recursive + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }} + role-session-name: ${{ github.job }}Session + aws-region: "eu-west-1" + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ env.RUST_VERSION }} @@ -181,13 +193,6 @@ jobs: run: | scripts/distributables/macOS-package/build.sh --build "${{ needs.validate-preconditions.outputs.version }}" - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }} - role-session-name: ${{ github.job }}Session - aws-region: "eu-west-1" - - name: Publish run: | OUTFILE=$(echo '${{ needs.validate-preconditions.outputs.s3_arns }}' | jq -r '.["${{ github.job }}"]')