Skip to content

Commit

Permalink
Use widoco to create release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophB committed Jul 3, 2024
1 parent a0865a0 commit f195bd4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
39 changes: 35 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,48 @@ on:
jobs:
release:
runs-on: ubuntu-latest
container: obolibrary/odklite
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- name: Generate artifacts
run: robot convert --input cop.owl --output cop.ttl
- uses: svenstaro/upload-release-action@v2
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Download widoco
run: wget -q -O widoco.jar https://github.com/dgarijo/Widoco/releases/download/v1.4.25/widoco-1.4.25-jar-with-dependencies_JDK-17.jar
- name: Compile documentation
run: |
java -jar widoco.jar \
-ontFile cop.owl \
-outFolder output \
-includeAnnotationProperties \
-rewriteAll \
-includeImportedOntologies \
-uniteSections \
-noPlaceHolderText \
-excludeIntroduction \
-noPlaceHolderText
cp output/ontology.* .
ls ontology.* | sed -e 'p;s/^ontology/cop/' | xargs -n2 mv
- name: Upload release artifacts
uses: svenstaro/upload-release-action@v2
with:
tag: ${{ github.ref }}
file: cop.*
file_glob: true
overwrite: true
- name: Deploy latest documentation
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
destination_dir: release/latest
- name: Deploy version documentation
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
destination_dir: release/${{ github.ref_name }}

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- RICKVIEW_EXAMPLES=Phenotyping Phenotype BasicPhenotypeClass
- RICKVIEW_HOMEPAGE=https://onto-med.github.io/COP/
- RICKVIEW_GITHUB=https://github.com/Onto-Med/COP
- RICKVIEW_DOC=https://github.com/Onto-Med/COP/releases/latest/download/index-en.html
- RICKVIEW_DOC=https://onto-med.github.io/COP/releases/latest/index-en.html
ports:
- "127.0.0.1:8080:8080"
restart: unless-stopped

0 comments on commit f195bd4

Please sign in to comment.