From 56ce9dbe4cd3b0b38272207e738ed3f588faa8b4 Mon Sep 17 00:00:00 2001 From: Bernard Wolff <2744510+bernardwolff@users.noreply.github.com> Date: Mon, 6 Jan 2025 16:38:54 +0000 Subject: [PATCH] combine build and deploy jobs into one --- .github/workflows/build.yml | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6c48a5..2e2b32a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ env: AWS_ROLE: ${{ secrets.awsIAMS3UploadRole }} jobs: - build: + build-and-deploy: runs-on: ubuntu-latest steps: @@ -29,27 +29,13 @@ jobs: - name: Run Build run: yarn run build - deploy: - runs-on: ubuntu-latest - needs: build - - steps: - - name: Checkout - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: '10' - - - name: Install dependencies - run: yarn - - - name: Configure AWS Credentials using OIDC - uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4 on 2025-01-06 - with: - role-to-assume: ${{ env.AWS_ROLE }} - role-session-name: github-action-account-link-extension-publish - aws-region: us-west-1 + - name: Configure AWS Credentials using OIDC + uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4 on 2025-01-06 + with: + role-to-assume: ${{ env.AWS_ROLE }} + role-session-name: github-action-account-link-extension-publish + aws-region: us-west-1 - - name: Run Deploy - run: sh tools/cdn.sh + - name: Run Deploy + run: sh tools/cdn.sh