Add GitHub Actions and pip updates to Dependabot #13
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 Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build_mkdocs: | |
| name: Build mkdocs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| python -m pip install '.[docs]' | |
| - name: Build site | |
| run: | | |
| python -m mkdocs build --strict | |
| - name: Create artifact | |
| shell: bash | |
| run: tar czvf site.tar.gz site | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: site-build | |
| path: site.tar.gz | |
| if-no-files-found: error | |
| retention-days: 1 |