From 58782c95cdfcfc8f5f4fff229b3a6c7b4738d46c Mon Sep 17 00:00:00 2001 From: unkn0wn Date: Wed, 24 Jun 2026 18:49:20 +0200 Subject: [PATCH] feat: add workflow for website deployment --- .gitea/workflows/deploy.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..621b510 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,37 @@ +name: Deploy Documentation + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + check-and-deploy: + runs-on: host + + steps: + - name: Install Node.js requirements for Actions + run: | + if ! command -v node &> /dev/null; then + apk add --no-cache nodejs npm + fi + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - name: Install dependencies + run: npm ci --legacy-peer-deps + + - name: Build documentation + run: npm run build + + - name: Deploy to Apache volume + run: | + find /var/www/louis-potevin.dev -mindepth 1 -delete + + cp -r dist/. /var/www/louis-potevin.dev/ + + chmod -R 755 /var/www/louis-potevin.dev/ \ No newline at end of file