forked from materialdigital/application-ontologies
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (70 loc) · 3.4 KB
/
deploy_doc.yaml
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
61
62
63
64
65
66
67
68
69
70
71
name: Create HTML documentation
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref_name }}
path: deploy_checkout
- name: Get widoco.jar
run: |
wget -O widoco.jar https://github.com/dgarijo/Widoco/releases/download/v1.4.17/java-11-widoco-1.4.17-jar-with-dependencies.jar
#- env:
# ao: hmo
# aodir: hardness_measurement_ontology_HMO
# aottl: pmd_hmo.ttl
# name: Build HTML docs for ${{ env.ao }} on ${{ github.ref_name }}
# run: |
# mkdir -p public/${{ env.ao }}
# java -jar widoco.jar -ontFile deploy_checkout/${{ env.aodir }}/${{ env.aottl }} -outFolder public/${{ env.ao }} -htaccess -uniteSections -includeAnnotationProperties -lang en-de -getOntologyMetadata -noPlaceHolderText -rewriteAll -webVowl
# cp public/${{ env.ao }}/index-en.html public/${{ env.ao }}/index.html
- env:
ao: tto
aodir: tensile_test_ontology_TTO
aottl: pmd_tto.ttl
name: Build HTML docs for ${{ env.ao }} on ${{ github.ref_name }}
run: |
mkdir -p public/${{ env.ao }}
java -jar widoco.jar -ontFile deploy_checkout/${{ env.aodir }}/${{ env.aottl }} -outFolder public/${{ env.ao }} -htaccess -uniteSections -includeAnnotationProperties -lang en-de -getOntologyMetadata -noPlaceHolderText -rewriteAll -webVowl
cp public/${{ env.ao }}/index-en.html public/${{ env.ao }}/index.html
- env:
ao: pgo
aodir: precipitate_geometry_ontology_PGO
aottl: pmd_pgo.ttl
name: Build HTML docs for ${{ env.ao }} on ${{ github.ref_name }}
run: |
mkdir -p public/${{ env.ao }}
java -jar widoco.jar -ontFile deploy_checkout/${{ env.aodir }}/${{ env.aottl }} -outFolder public/${{ env.ao }} -htaccess -uniteSections -includeAnnotationProperties -lang en-de -getOntologyMetadata -noPlaceHolderText -rewriteAll -webVowl
cp public/${{ env.ao }}/index-en.html public/${{ env.ao }}/index.html
- env:
ao: mo
aodir: microscopy_ontology_MO
aottl: pmd_mo.ttl
name: Build HTML docs for ${{ env.ao }} on ${{ github.ref_name }}
run: |
mkdir -p public/${{ env.ao }}
java -jar widoco.jar -ontFile deploy_checkout/${{ env.aodir }}/${{ env.aottl }} -outFolder public/${{ env.ao }} -htaccess -uniteSections -includeAnnotationProperties -lang en-de -getOntologyMetadata -noPlaceHolderText -rewriteAll -webVowl
cp public/${{ env.ao }}/index-en.html public/${{ env.ao }}/index.html
## Somehow this isn't working for hto
# - env:
# ao: hto
# aodir: heat_treatment_ontology_HTO
# aottl: pmdao_HTO.ttl
# name: Build HTML docs for ${{ env.ao }} on ${{ github.ref_name }}
# run: |
# mkdir -p public/${{ env.ao }}
# java -jar widoco.jar -ontFile deploy_checkout/${{ env.aodir }}/${{ env.aottl }} -outFolder public/${{ env.ao }} -htaccess -uniteSections -includeAnnotationProperties -lang en-de -getOntologyMetadata -noPlaceHolderText -rewriteAll -webVowl
# cp public/${{ env.ao }}/index-en.html public/${{ env.ao }}/index.html
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}