chore(deps): bump actions/setup-python from 4 to 5 (#355) #502
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: CI Build | |
on: | |
push: | |
branches: ['master', 'main'] | |
pull_request: | |
workflow_dispatch: | |
env: | |
PYTHON_VERSION_DEFAULT: "3.10" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
# see https://github.com/actions/checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
# see https://github.com/actions/setup-java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'zulu' | |
java-package: jdk | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
working-directory: tools | |
- name: Setup Python Environment | |
# see https://github.com/actions/setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION_DEFAULT }} | |
architecture: 'x64' | |
- name: Generate JSON Schema documentation | |
run: ./gen.sh | |
working-directory: docgen/json | |
- name: Generate XML Schema documentation | |
run: ./gen.sh | |
working-directory: docgen/xml | |
- name: Archive JSON Schema documentation | |
# https://github.com/actions/upload-artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: JSON-Schema-documentation | |
path: docgen/json/docs | |
- name: Archive XML Schema documentation | |
# https://github.com/actions/upload-artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: XML-Schema-documentation | |
path: docgen/xml/docs |