Skip to content

Commit

Permalink
ci: add GitHub Actions workflow to build the website
Browse files Browse the repository at this point in the history
This commit introduces a GitHub Actions workflow (`site-doc.yml`) to
automate website builds. The workflow triggers on pushes and pull
requests to the `main` branch. It checks out the repository, sets up
Python, installs `uv`, synchronizes dependencies, and builds the HTML.

This is helpful to determine if a PR breaks the website by ensuring the
site builds successfully before merging changes.

Signed-off-by: Sébastien Han <[email protected]>
  • Loading branch information
leseb committed Feb 19, 2025
1 parent a66b4c4 commit a064300
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/site-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Website

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5

- name: Sync with uv
run: uv sync --extra docs

- name: Build HTML
run: uv make html

0 comments on commit a064300

Please sign in to comment.