Versioned Documentation #147
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: Docs | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install | |
run: | | |
pip install -r docs/requirements.yml | |
pip install -e . | |
- name: Build Docs | |
run: mkdocs build | |
# Only deploy if main, otherwise just build for testing | |
- name: Deploy | |
if: endsWith(github.ref, '/main') | |
run: mike deploy --push --update-aliases latest |