Skip to content

Adding system packages to github workflows to fix doc generation #2

Adding system packages to github workflows to fix doc generation

Adding system packages to github workflows to fix doc generation #2

Workflow file for this run

name: docs
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: github-pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcairo2-dev pkg-config
- name: Install Poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry==2.1.2
- name: Install documentation dependencies
run: |
poetry config virtualenvs.in-project true
poetry install --with docs --extras reporting --no-interaction --no-ansi
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Build documentation
run: poetry run mkdocs build -d site --no-directory-urls
env:
MKDOCS_SITE_URL: https://openteams-ai.github.io/checkmaite/
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4