chore: update dependencies and instructions #28
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: Documentation | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
jobs: | |
Documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- name: Set PY variable | |
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry config cache-dir ~/.cache/poetry | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/poetry | |
key: poetry|${{ env.PY }}|${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies | |
run: poetry install --only docs | |
- name: Set up Git | |
run: | | |
git config user.name ${{ github.actor }} | |
git config user.email ${{ github.actor }}@users.noreply.github.com | |
- name: Build documentation | |
run: | | |
git fetch origin gh-pages | |
poetry run pip install setuptools | |
poetry run mike delete main | |
poetry run mike deploy --push main |