Fix schema generation and add support for 'section' as a stopgap befo… #120
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 | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Unit tests and generate documentation | |
env: | |
PYTHONPATH: src/main/python | |
run: | | |
python -m unittest discover -v -s src/test/python | |
mkdir -p build | |
python src/tools/python/make_documentation.py > build/index.md | |
- name: Generate HTML | |
uses: BaileyJM02/[email protected] | |
with: | |
input_path: build/index.md | |
output_dir: build/ | |
- run: ls -al build | |
- name: Deploy to GitHub pages | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: build/ |