Skip to content

Commit

Permalink
chore: extend build workflow to upload/download artifacts (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
Encord-davids authored Nov 28, 2023
1 parent 516855c commit 3d08a93
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ concurrency:
cancel-in-progress: true

jobs:
build:
name: Build Encord.Active
build-frontend:
name: Build frontend
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -18,11 +18,35 @@ jobs:
token: ${{ secrets.AUTOMATION_BOT_ACCESS_TOKEN }}
ref: main

- name: Build frontend
- name: Build
uses: ./.github/actions/build-frontend
with:
secrets: ${{ toJSON(secrets) }}

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: frontend-build-${{ github.sha }}
path: src/encord_active/frontend/dist
if-no-files-found: error

build-package:
needs: ["build-frontend"]
name: Build Package
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.AUTOMATION_BOT_ACCESS_TOKEN }}
ref: main

- name: Download frontend build
uses: actions/download-artifact@v3
with:
name: frontend-build-${{ github.sha }}
path: src/encord_active/frontend/dist

- name: Setup root poetry environment
uses: ./.github/actions/setup-root-poetry-environment

Expand Down

0 comments on commit 3d08a93

Please sign in to comment.