Skip to content

tests: annotate schema for test resources of CDX1.6 JSON (#423) #256

tests: annotate schema for test resources of CDX1.6 JSON (#423)

tests: annotate schema for test resources of CDX1.6 JSON (#423) #256

Workflow file for this run

name: Build Docs
on:
push:
branches: ['master', 'main']
pull_request:
workflow_dispatch:
env:
PYTHON_VERSION_DEFAULT: "3.10"
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@v4
- 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 Schema documentation
run: ./gen.sh
- name: Archive Schema documentation
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v4
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@v4
- 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 Schema documentation
run: ./gen.sh
- name: Archive Schema documentation
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v4
with:
name: JSON-Schema-documentation
path: docgen/json/docs
if-no-files-found: error