Skip to content

Commit

Permalink
combine build and deploy jobs into one
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardwolff committed Jan 6, 2025
1 parent 4c28bf4 commit 56ce9db
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
AWS_ROLE: ${{ secrets.awsIAMS3UploadRole }}

jobs:
build:
build-and-deploy:
runs-on: ubuntu-latest

steps:
Expand All @@ -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

0 comments on commit 56ce9db

Please sign in to comment.