Skip to content

Commit e60d03d

Browse files
authored
Create build.yml
1 parent b76a495 commit e60d03d

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build ontology assets
2+
3+
on:
4+
workflow_dispatch:
5+
# workflow_call:
6+
# inputs:
7+
# is_release:
8+
# required: true
9+
# type: boolean
10+
11+
jobs:
12+
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.12'
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r tools/python/requirements.txt
29+
30+
- name: build
31+
run: |
32+
bash tools/bash/build/create-combined-turtle.sh
33+
python tools/python/build/create-schemas.py src/imaging-ontology/ build/
34+
35+
- name: upload assets in artifacts
36+
uses: actions/upload-artifact@v4
37+
if: ${{ inputs.is_release }}
38+
with:
39+
name: schema-bundle
40+
path: build/*

0 commit comments

Comments
 (0)