From 66c759e901b51c14c68e92388d213d6cd11752c3 Mon Sep 17 00:00:00 2001 From: Rajat Jindal Date: Mon, 18 Sep 2023 12:48:49 +0530 Subject: [PATCH] upload spin linux amd64 artifacts to s3 Signed-off-by: Rajat Jindal --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 017dc48be9..3bfe6d3b82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -178,6 +178,19 @@ jobs: file: _dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.zip tag: ${{ github.ref }} + - name: Configure AWS Credentials + if: runner.os == 'linux' && matrix.config.arch == 'amd64' + uses: aws-actions/configure-aws-credentials@v1 + with: + role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.SPIN_RELEASE_ARTIFACTS_REPO }} + role-session-name: spin-release-artifacts + aws-region: ${{ secrets.AWS_REGION }} + + - name: Copy Binary to S3 - ${{ env.RELEASE_VERSION }} + if: runner.os == 'linux' && matrix.config.arch == 'amd64' + run: | + aws s3 cp _dist/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz s3://${{ secrets.SPIN_RELEASE_ARTIFACTS_REPO }}/spin-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz --acl public-read + checksums: name: generate release checksums runs-on: ubuntu-latest