-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate ontology documentation, part of #3
- Loading branch information
1 parent
5ad6bfe
commit 5d8df4d
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Generate and Publish Ontology Documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
doc: | ||
runs-on: ubuntu-latest | ||
env: | ||
WIDOCO_DOWNLOAD_URL: https://github.com/dgarijo/Widoco/releases/download/v1.4.20/widoco-1.4.20-jar-with-dependencies_JDK-17.jar | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Cache Widoco | ||
uses: actions/cache@v3 | ||
with: | ||
path: jar | ||
key: ${{ env.WIDOCO_DOWNLOAD_URL }} | ||
|
||
- name: Download Widoco if it doesn't exist | ||
# wget --no-clobber has exit code 1 | ||
run: | | ||
mkdir -p jar | ||
if test -f jar/widoco.jar; then echo "Widoco already exists, skipping download."; exit 0; fi | ||
wget $WIDOCO_DOWNLOAD_URL --progress=dot:giga --output-document=jar/widoco.jar | ||
- name: Run Widoco | ||
run: java -jar jar/widoco.jar -ontFile annodc.owl -rewriteAll -uniteSections -getOntologyMetadata -outFolder . | ||
|
||
- name: Rename index-en.html to index.html | ||
run: mv doc/index-en.html doc/index.html | ||
|
||
- name: Deploy Documentation to gh-pages branch | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: gh-pages | ||
folder: doc | ||
single-commit: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters