Skip to content

Merge pull request #451 from filipsnastins/dependabot/pip/ruff-0.6.9 #189

Merge pull request #451 from filipsnastins/dependabot/pip/ruff-0.6.9

Merge pull request #451 from filipsnastins/dependabot/pip/ruff-0.6.9 #189

Workflow file for this run

name: mkdocs
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Set up Poetry cache for Python dependencies
uses: actions/cache@v4
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ runner.os }}-poetry-
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | POETRY_HOME="$HOME/.poetry" python - --yes
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Test Poetry installation
run: poetry --version
- name: Install dependencies - docs
run: |
poetry install --no-interaction --only docs
poetry show --tree
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Deploy Documentation to GitHub Pages
run: poetry run mkdocs gh-deploy --force