|
1 |
| -name: CI Build |
| 1 | +name: Build Docs |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
|
10 | 10 | PYTHON_VERSION_DEFAULT: "3.10"
|
11 | 11 |
|
12 | 12 | jobs:
|
13 |
| - build: |
| 13 | + docs_xml: |
14 | 14 | runs-on: ubuntu-latest
|
| 15 | + defaults: |
| 16 | + run: |
| 17 | + working-directory: docgen/xml |
15 | 18 | steps:
|
16 | 19 | - name: Checkout
|
17 | 20 | # see https://github.com/actions/checkout
|
18 | 21 | uses: actions/checkout@v4
|
19 |
| - - name: Set up JDK |
20 |
| - # see https://github.com/actions/setup-java |
21 |
| - uses: actions/setup-java@v3 |
22 |
| - with: |
23 |
| - java-version: '8' |
24 |
| - distribution: 'zulu' |
25 |
| - java-package: jdk |
26 |
| - - name: Build with Maven |
27 |
| - run: mvn -B package --file pom.xml |
28 |
| - working-directory: tools |
29 | 22 | - name: Setup Python Environment
|
30 | 23 | # see https://github.com/actions/setup-python
|
31 |
| - uses: actions/setup-python@v4 |
| 24 | + uses: actions/setup-python@v5 |
32 | 25 | with:
|
33 | 26 | python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
|
34 | 27 | architecture: 'x64'
|
35 |
| - - name: Generate JSON Schema documentation |
36 |
| - run: ./gen.sh |
37 |
| - working-directory: docgen/json |
38 |
| - - name: Generate XML Schema documentation |
| 28 | + - name: Generate Schema documentation |
39 | 29 | run: ./gen.sh
|
40 |
| - working-directory: docgen/xml |
41 |
| - - name: Archive JSON Schema documentation |
| 30 | + - name: Archive Schema documentation |
42 | 31 | # https://github.com/actions/upload-artifact
|
43 | 32 | uses: actions/upload-artifact@v3
|
44 | 33 | with:
|
45 |
| - name: JSON-Schema-documentation |
46 |
| - path: docgen/json/docs |
47 |
| - - name: Archive XML Schema documentation |
| 34 | + name: XML-Schema-documentation |
| 35 | + path: docgen/xml/docs |
| 36 | + if-no-files-found: error |
| 37 | + docs_json: |
| 38 | + runs-on: ubuntu-latest |
| 39 | + defaults: |
| 40 | + run: |
| 41 | + working-directory: docgen/json |
| 42 | + steps: |
| 43 | + - name: Checkout |
| 44 | + # see https://github.com/actions/checkout |
| 45 | + uses: actions/checkout@v4 |
| 46 | + - name: Setup Python Environment |
| 47 | + # see https://github.com/actions/setup-python |
| 48 | + uses: actions/setup-python@v5 |
| 49 | + with: |
| 50 | + python-version: ${{ env.PYTHON_VERSION_DEFAULT }} |
| 51 | + architecture: 'x64' |
| 52 | + - name: Generate Schema documentation |
| 53 | + run: ./gen.sh |
| 54 | + - name: Archive Schema documentation |
48 | 55 | # https://github.com/actions/upload-artifact
|
49 | 56 | uses: actions/upload-artifact@v3
|
50 | 57 | with:
|
51 |
| - name: XML-Schema-documentation |
52 |
| - path: docgen/xml/docs |
| 58 | + name: JSON-Schema-documentation |
| 59 | + path: docgen/json/docs |
| 60 | + if-no-files-found: error |
0 commit comments