-
Notifications
You must be signed in to change notification settings - Fork 26
54 lines (45 loc) · 1.3 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build
on:
workflow_dispatch:
concurrency:
group: encord-active-${{ github.ref }}-build
cancel-in-progress: true
jobs:
build-frontend:
name: Build frontend
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.AUTOMATION_BOT_ACCESS_TOKEN }}
ref: main
- 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
- name: Build
run: poetry build