-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (41 loc) · 1.16 KB
/
update-ontology.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
name: Update Ontology
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- name: Setup Robot
run: sh utils/setup-robot.sh
- name: Generate OWL file
run: sh utils/convert-owl.sh # This will produce an output foldere: Use Node.js ${{ matrix.node-version }}
- name: Save build output
uses: actions/upload-artifact@v1
with:
name: built-output
path: ./output
deploy-owl-file:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Load saved build output
uses: actions/download-artifact@v1
with:
name: built-output
path: ./output
- name: Deploy to ontology branch
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: ontology
build_dir: output
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}