2025-12-05 08:36:25 +01:00
|
|
|
name: Build Documentation
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches:
|
|
|
|
|
- main
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
container: catthehacker/ubuntu:act-latest
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
|
2025-12-05 08:42:02 +01:00
|
|
|
- name: Install Node.js
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: "latest"
|
|
|
|
|
|
2025-12-05 08:36:25 +01:00
|
|
|
- name: Install uv
|
|
|
|
|
uses: https://github.com/astral-sh/setup-uv@v7
|
|
|
|
|
with:
|
|
|
|
|
enable-cache: true
|
|
|
|
|
|
|
|
|
|
- name: Build documentation
|
|
|
|
|
run: uv run zensical build
|
|
|
|
|
|
|
|
|
|
- name: Upload site artifact
|
|
|
|
|
uses: actions/upload-artifact@v5
|
|
|
|
|
with:
|
|
|
|
|
name: docs
|
|
|
|
|
path: site/
|
|
|
|
|
retention-days: 30
|