fix: allow multiple entries for ModelCard considerations lists in xml #911
Workflow file for this run
This file contains hidden or 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: Build Docs | |
| on: | |
| push: | |
| branches: ['master', 'main'] | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| PYTHON_VERSION_DEFAULT: "3.10" | |
| # https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token | |
| permissions: {} | |
| jobs: | |
| docs_xml: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: docgen/xml | |
| steps: | |
| - name: Checkout | |
| # see https://github.com/actions/checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK | |
| # see https://github.com/actions/setup-java | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'zulu' | |
| java-package: jdk | |
| - name: Generate Schema documentation | |
| run: ./gen.sh | |
| - name: Archive Schema documentation | |
| # https://github.com/actions/upload-artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: XML-Schema-documentation | |
| path: docgen/xml/docs | |
| if-no-files-found: error | |
| docs_json: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: docgen/json | |
| steps: | |
| - name: Checkout | |
| # see https://github.com/actions/checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Python Environment | |
| # see https://github.com/actions/setup-python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION_DEFAULT }} | |
| architecture: 'x64' | |
| - name: Generate Schema documentation | |
| run: ./gen.sh | |
| - name: Archive Schema documentation | |
| # https://github.com/actions/upload-artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: JSON-Schema-documentation | |
| path: docgen/json/docs | |
| if-no-files-found: error | |
| docs_proto: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: docgen/proto | |
| steps: | |
| - name: Checkout | |
| # see https://github.com/actions/checkout | |
| uses: actions/checkout@v6 | |
| - name: Generate Schema documentation | |
| run: ./gen.sh | |
| - name: Archive Schema documentation | |
| # https://github.com/actions/upload-artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: PROTO-Schema-documentation | |
| path: docgen/proto/docs | |
| if-no-files-found: error |