-
Notifications
You must be signed in to change notification settings - Fork 3
98 lines (92 loc) · 3.37 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
DITA_OT_VERSION: 4.1.2
jobs:
dita-ot_4-1-2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
- name: DITA-OT
run: |
curl --location --remote-name https://github.com/dita-ot/dita-ot/releases/download/4.1.2/dita-ot-4.1.2.zip
unzip dita-ot-4.1.2
chmod +x dita-ot-4.1.2/bin/dita
chmod +x dita-ot-4.1.2/bin/ant
zip -qq -r org.jung.schematron.zip . -x ./.git/**\*
dita-ot-4.1.2/bin/dita install https://github.com/stefan-jung/org.jung.graal/archive/refs/heads/main.zip
dita-ot-4.1.2/bin/dita install org.jung.schematron.zip --force
- name: Build test files
run: |
dita-ot-4.1.2/bin/dita --project=samples/samples.xml --output=4.1.2 --processing-mode=strict --verbose
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: org.jung.terminology-4-1-2
path: |
4.1.2
dita-ot_4-0-2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
- name: DITA-OT
run: |
curl --location --remote-name https://github.com/dita-ot/dita-ot/releases/download/4.0.2/dita-ot-4.0.2.zip
unzip dita-ot-4.0.2
chmod +x dita-ot-4.0.2/bin/dita
chmod +x dita-ot-4.0.2/bin/ant
zip -qq -r org.jung.schematron.zip . -x ./.git/**\*
dita-ot-4.0.2/bin/dita install https://github.com/stefan-jung/org.jung.graal/archive/refs/heads/main.zip
dita-ot-4.0.2/bin/dita install org.jung.schematron.zip --force
- name: Build test files
run: |
dita-ot-4.0.2/bin/dita --project=samples/samples.xml --output=4.0.2 --processing-mode=strict --verbose
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: org.jung.terminology-4-0-2
path: |
4.0.2
dita-ot_3-7-4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
- name: DITA-OT
run: |
curl --location --remote-name https://github.com/dita-ot/dita-ot/releases/download/3.7.4/dita-ot-3.7.4.zip
unzip dita-ot-3.7.4
chmod +x dita-ot-3.7.4/bin/dita
chmod +x dita-ot-3.7.4/bin/ant
zip -qq -r org.jung.terminology.zip . -x ./.git/**\*
zip -qq -r org.jung.schematron.zip . -x ./.git/**\*
dita-ot-3.7.4/bin/dita install https://github.com/stefan-jung/org.jung.graal/archive/refs/heads/main.zip
dita-ot-3.7.4/bin/dita install org.jung.schematron.zip --force
- name: Build test files
run: |
dita-ot-3.7.4/bin/dita --project=samples/samples.xml --output=3.7.4 --processing-mode=strict --verbose
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: org.jung.terminology-3-7-4
path: |
3.7.4