Merge pull request #223 from yaleman/dependabot/pip/mkdocstrings-pyth… #109
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: MKDocs Deployment to GitHub Pages | |
"on": | |
push: | |
branches: | |
- main # Set a branch to deploy | |
jobs: | |
mkdocs: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Running mkdocs | |
run: | | |
python -m pip install --quiet --no-cache-dir --upgrade poetry | |
poetry install | |
poetry run mkdocs gh-deploy -m 'Commit {sha} MkDocs {version}' |