Update deploy_doc.yaml #2
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
name: Create HTML documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the repository | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref_name }} | |
path: deploy_checkout | |
# Download the Widoco JAR file | |
- 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 | |
# Build HTML documentation for pmd_tto.ttl | |
- name: Build HTML docs for TTO 3.0 | |
run: | | |
mkdir -p public | |
java -jar widoco.jar -ontFile deploy_checkout/pmd_tto.ttl -outFolder public \ | |
-htaccess -uniteSections -includeAnnotationProperties -lang en-de \ | |
-getOntologyMetadata -noPlaceHolderText -rewriteAll -webVowl | |
cp public/index-en.html public/index.html | |
# Deploy to GitHub Pages | |
- 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 }} |