Merge pull request #18 from Trailblaze-Software/slope-fix #79
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: Publish Docs | |
| on: | |
| push: | |
| branches: [main] | |
| tags: | |
| - 'v*' | |
| concurrency: | |
| group: documentation | |
| cancel-in-progress: false | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure Git Credentials | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.x | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y doxygen graphviz | |
| - name: Install python dependencies | |
| run: pip install mkdocs mkdocs-material mike mkdoxy | |
| - name: Deploy dev documentation | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| cd docs | |
| mike deploy -F mkdocs.yml --push --update-aliases dev | |
| mike set-default -F mkdocs.yml --push latest || mike set-default -F mkdocs.yml --push dev | |
| - name: Deploy release documentation | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: | | |
| cd docs | |
| mike deploy -F mkdocs.yml --push --update-aliases ${{ github.ref_name }} latest | |
| mike set-default -F mkdocs.yml --push latest |