From 763aa3d17a7b2fca7cb7202912486005330805f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Fri, 6 Mar 2026 01:24:13 +0100 Subject: [PATCH] wxw --- .gitea/workflows/gitea-actions.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/gitea-actions.yml b/.gitea/workflows/gitea-actions.yml index 70e2662..bc0b757 100644 --- a/.gitea/workflows/gitea-actions.yml +++ b/.gitea/workflows/gitea-actions.yml @@ -9,6 +9,15 @@ jobs: runs-on: homelab steps: + - name: Bootstrap git and node + run: | + command -v git >/dev/null && command -v node >/dev/null && node --version | grep -q "v20" && exit 0 + apt-get update -qq + apt-get install -y -qq git curl + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - + apt-get install -y -qq nodejs + git --version && node --version && npm --version + - name: Checkout repository run: | git clone http://oauth2:${{ gitea.token }}@192.168.1.18:3000/${{ gitea.repository }}.git . @@ -19,8 +28,7 @@ jobs: - name: Deploy to /srv/ssd/www/docusaurus run: | - mkdir -p /deploy - rm -rf /deploy/* - cp -r docs-site/build/* /deploy/ - echo "Deployed files:" - ls /deploy | head -20 \ No newline at end of file + rm -rf /srv/www/docusaurus/* + cp -r docs-site/build/. /srv/www/docusaurus/ + echo "Deployed:" + ls /srv/www/docusaurus | head -20 \ No newline at end of file