From 4e624921c39155803d1ff502523f51458401f7c0 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 5 Dec 2025 08:36:25 +0100 Subject: [PATCH] action to build docs --- .forgejo/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .forgejo/workflows/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..26337b0 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,30 @@ +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 + + - 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