Add new CI job to verify version in files match Git tag name (#61) #152
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: Docs | |
| on: | |
| push: | |
| branches: [ master, develop ] | |
| tags: | |
| - '*' | |
| release: | |
| types: | |
| - created | |
| jobs: | |
| docs: | |
| name: Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| submodules: true | |
| - name: Set system to non-interactive mode | |
| run: export DEBIAN_FRONTEND=noninteractive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -y doxygen | |
| pip install -r docs/requirements.txt | |
| - name: Build documentation | |
| run: | | |
| cd docs | |
| sphinx-multiversion . build -D 'exhale_args.containmentFolder=${sourcedir}/build/api' | |
| cp _templates/redirect.html build/index.html | |
| cd .. | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3.7.3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/build | |
| force_orphan: true |