Skip to content

chore: update dependencies and instructions #28

chore: update dependencies and instructions

chore: update dependencies and instructions #28

Workflow file for this run

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