Skip to content

Documentation (#21)

Documentation (#21) #2

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
- "v*"
pull_request:
workflow_dispatch:
permissions:
contents: write
jobs:
docs:
name: Build and Publish
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}/llm-benchmark
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/llm-benchmark
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12.x"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Sphinx
run: |
sphinx-build -b html docs/ docs/_build/html
- name: Publish
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ github.workspace }}/llm-benchmark/docs/_build/html
force_orphan: true