File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : Ontology HTML
4
+
5
+ on :
6
+ # Triggers the workflow on push or pull request events but only for the "main" branch
7
+ push :
8
+ branches : [ "main" ]
9
+ pull_request :
10
+ branches : [ "main" ]
11
+
12
+ # Allows you to run this workflow manually from the Actions tab
13
+ workflow_dispatch :
14
+
15
+ jobs :
16
+ build :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - name : Create Ontology Documentation
21
+ run : |
22
+ sudo apt-get install python3 python3-setuptools python3-pip -y
23
+ sudo apt-get install gcc libpq-dev -y
24
+ sudo apt-get install python3-dev python3-pip -y
25
+ sudo apt-get install python3-venv python3-wheel -y
26
+ sudo pip3 install wheel pylode==3.0.2 rdflib
27
+ mkdir docs
28
+ echo "Generating documentation for Core ontology"
29
+ python -m pylode owl/n4o-oo.owl -o docs/index.html
30
+ cp owl/n4o-oo.owl docs
31
+ - name : Deploy 🚀
32
+ uses : JamesIves/github-pages-deploy-action@releases/v4
33
+ with :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ BRANCH : gh-pages
36
+ clean : false
37
+ FOLDER : docs/
You can’t perform that action at this time.
0 commit comments