forked from craig-willis/icasa
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.67 KB
/
pylode.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
name: Run pyLODE
on:
push:
paths:
- '**.owl'
workflow_dispatch:
jobs:
pylode:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install pyLODE
run: python -m pip install pyLODE==2.13.2 ontogram
- name: Run pyLODE
run: |
mkdir -p $GITHUB_WORKSPACE/docs/1.0-alpha/core
pylode -i $GITHUB_WORKSPACE/icasa-mgmt-info.owl -o $GITHUB_WORKSPACE/docs/1.0-alpha/core/index.html
cp $GITHUB_WORKSPACE/icasa-mgmt-info.owl docs/1.0-alpha/core/
rdfpipe -o ttl $GITHUB_WORKSPACE/icasa-mgmt-info.owl > $GITHUB_WORKSPACE/docs/1.0-alpha/core/core.ttl
mkdir -p $GITHUB_WORKSPACE/docs/1.0-alpha/vu
pylode -i $GITHUB_WORKSPACE/variables-units.owl -o $GITHUB_WORKSPACE/docs/1.0-alpha/vu/index.html
cp $GITHUB_WORKSPACE/variables-units.owl docs/1.0-alpha/vu/
rdfpipe -o ttl $GITHUB_WORKSPACE/variables-units.owl > $GITHUB_WORKSPACE/docs/1.0-alpha/vu/vu.ttl
mkdir -p $GITHUB_WORKSPACE/docs/1.0-alpha/variables
pylode -i $GITHUB_WORKSPACE/icasa-measured-data.owl -o $GITHUB_WORKSPACE/docs/1.0-alpha/variables/index.html
cp $GITHUB_WORKSPACE/icasa-measured-data.owl docs/1.0-alpha/variables/
rdfpipe -o ttl $GITHUB_WORKSPACE/icasa-measured-data.owl > $GITHUB_WORKSPACE/docs/1.0-alpha/variables/variables.ttl
- name: Commit HTML
run: |
git config user.name github-actions
git config user.email [email protected]
git add docs/1.0-alpha
git commit -m 'Updated vocabulary'
git push