docling/.github/workflows/docs.yml
Michele Dolfi 1c7c5b6254 add CI for docs
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2024-10-17 09:00:19 +02:00

28 lines
775 B
YAML

on:
workflow_call:
inputs:
deploy:
type: boolean
description: "If true, the docs will be deployed."
default: false
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install poetry
run: pipx install poetry==1.8.3
shell: bash
- uses: actions/setup-python@v4
with:
cache: 'poetry'
- name: Install dependencies
run: poetry install --only docs
shell: bash
- name: Build docs
run: poetry run mkdocs build --verbose --clean
- name: Build and push docs
if: inputs.deploy
run: poetry run mkdocs gh-deploy --force