-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.81 KB
/
cd_publish.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
55
56
57
58
59
60
name: CD_publish
on:
push:
#on:
# push:
# branches:
# - '[0-9]+.[0-9]+.[0-9]+'
# - '[0-9]+.[0-9]+.[0-9]+-*'
#
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install EMMOntoPy and pyvode
run: |
pip install --upgrade pip
pip install EMMOntoPy pylode==2.13.2
- name: Create build directory
run: mkdir build
- name: Copy json-ld context
run: cp -r context build/.
- name: Generate squashed ontology
run: ontoconvert -saw \
-c http://www.w3.org/2004/02/skos/core#prefLabel-->http://www.w3.org/2000/01/rdf-schema#label \
-c elucidation-->http://www.w3.org/2000/01/rdf-schema#comment \
-c definition-->http://www.w3.org/2000/01/rdf-schema#comment \
oteio.ttl build/oteio.ttl
#-c comment-->http://www.w3.org/2000/01/rdf-schema#comment
- name: Generate inferred ontology
run: ontoconvert -saw --reasoner=HermiT \
-c http://www.w3.org/2004/02/skos/core#prefLabel-->http://www.w3.org/2000/01/rdf-schema#label \
-c elucidation-->http://www.w3.org/2000/01/rdf-schema#comment \
-c definition-->http://www.w3.org/2000/01/rdf-schema#comment \
oteio.ttl build/oteio-inferred.ttl
#-c comment-->http://www.w3.org/2000/01/rdf-schema#comment
- name: Generate documentation
run: pylode -i build/oteio-inferred.ttl -o build/oteio.html -p ontdoc
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build # The folder the action should deploy.