Skip to content

Commit f9e0d89

Browse files
committed
2 parents 45d2272 + d8d4045 commit f9e0d89

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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/

0 commit comments

Comments
 (0)