You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spiel/.github/workflows/publish-docs.yml

35 lines
961 B
YAML

name: publish-docs
on:
push:
branches:
- main
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3.1.0
- name: Set up Python
uses: actions/setup-python@v4.3.0
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1.3
with:
virtualenvs-create: true
- name: Load cached virtual environment
id: cached-poetry-dependencies
uses: actions/cache@v3.0.11
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install package
run: poetry install --no-interaction
- name: Build and deploy docs
run: poetry run mkdocs gh-deploy --clean --strict --verbose --force