From b21138360493aefa6dc7d6907a625971d95f7645 Mon Sep 17 00:00:00 2001 From: Thomas Crowley Date: Wed, 13 Nov 2024 12:12:37 +1100 Subject: [PATCH 1/2] Deploy JAR on RC release --- .github/workflows/release_rc.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release_rc.yml b/.github/workflows/release_rc.yml index 7a358a3..95d1a89 100644 --- a/.github/workflows/release_rc.yml +++ b/.github/workflows/release_rc.yml @@ -25,6 +25,16 @@ jobs: - name: Download and verify JAR(s) run: | ./scripts/jar.sh "${{github.event.inputs.manifest}}" + - name: Release Kpow JDK11 JAR + run: | + VERSION=${{github.event.inputs.version}} + VERSION="${VERSION//./-}" + aws s3 cp target/kpow-java11-standalone.jar s3://${{ secrets.RELEASES_BUCKET }}/kpow-$VERSION-java11.jar + - name: Release Kpow JDK8 JAR + run: | + VERSION=${{github.event.inputs.version}} + VERSION="${VERSION//./-}" + aws s3 cp target/kpow-java8-standalone.jar s3://${{ secrets.RELEASES_BUCKET }}/kpow-$VERSION-java8.jar - # Add support for more platforms with QEMU (optional) # https://github.com/docker/setup-qemu-action From 533a6b69aecc5276e8b9b9c5e280f9f8739d8163 Mon Sep 17 00:00:00 2001 From: Thomas Crowley Date: Wed, 13 Nov 2024 12:13:27 +1100 Subject: [PATCH 2/2] Update release_rc.yml Configure AWS OIDC --- .github/workflows/release_rc.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release_rc.yml b/.github/workflows/release_rc.yml index 95d1a89..57a4f5c 100644 --- a/.github/workflows/release_rc.yml +++ b/.github/workflows/release_rc.yml @@ -17,6 +17,11 @@ jobs: - name: Verify RC version input run: | ./scripts/rc_release_check.sh ${{github.event.inputs.version}} + - name: Configure AWS Credentials (OIDC) + uses: aws-actions/configure-aws-credentials@v1 + with: + role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} + aws-region: us-east-1 - name: Login to DockerHub uses: docker/login-action@v3 with: