Merge pull request #37 from CCBR/iss-33 #4
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- "docs/**" | |
- "**.md" | |
- ".github/workflows/docs.yml" | |
- mkdocs.yml | |
env: | |
actor: "41898282+github-actions[bot]" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: git config | |
run: | | |
git config --local user.email "${actor}@users.noreply.github.com" | |
git config --local user.name "$actor" | |
- run: pip install --upgrade pip | |
- run: pip install -r docs/requirements.txt | |
- run: mkdocs gh-deploy --force |