gh-deploy #6
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: gh-deploy | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**docs/**' | |
- README.md | |
- '**mkdocs.yml' | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry config virtualenvs.create false \ | |
&& poetry install --no-interaction --no-ansi --only docs | |
- run: mkdocs gh-deploy --force |