-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.62 KB
/
release.yml
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
---
name: Prepare release files
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- 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
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 version documentation
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
destination_dir: release/${{ github.event.release.tag_name }}
- name: Deploy latest documentation
if: '!github.event.release.prerelease'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
destination_dir: release/latest