From a81867993a59efe351d3addb8d746fb2ad073b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Thu, 5 Mar 2026 18:51:37 +0100 Subject: [PATCH] Add first ci attempt --- .gitea/workflows/gitea-actions.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/gitea-actions.yml diff --git a/.gitea/workflows/gitea-actions.yml b/.gitea/workflows/gitea-actions.yml new file mode 100644 index 0000000..0b69ff5 --- /dev/null +++ b/.gitea/workflows/gitea-actions.yml @@ -0,0 +1,33 @@ +name: Build and deploy docs + +on: + push: + branches: + - main + +jobs: + build: + runs-on: homelab + + container: + image: node:20 + options: -v /srv/ssd/www/docusaurus:/deploy + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + cd docs-site + npm ci + + - name: Build Docusaurus site + run: | + cd docs-site + npm run build + + - name: Deploy + run: | + rm -rf /deploy/* + cp -r docs-site/build/* /deploy/