toc depth #40
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: | |
- master | |
- cart-pole-3 # TODO: Remove after merging to master | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
# TODO: Add proper chaching | |
# TODO: Maybe use poetry-based action | |
- run: pip install mkdocs-material mkdocs-material-extensions mkdocstrings[python] mike poetry | |
- run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- run: mike deploy --push --force --update-aliases $(poetry version -s) latest |