From 4ac7e79a8a585b17a555a02be11b2b0aa880b40a Mon Sep 17 00:00:00 2001 From: Markov Date: Sun, 15 Feb 2026 19:08:12 +0100 Subject: [PATCH] ci: auto-deploy on push (Gitea Actions) --- .gitea/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..a81d571 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: Deploy Web Client + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: self-hosted + steps: + - name: Pull latest code + run: | + cd /root/projects/team-board/web-client + git pull origin main + + - name: Install dependencies + run: | + cd /root/projects/team-board/web-client + npm install --production=false + + - name: Restart service + run: | + systemctl restart team-board-web + + - name: Health check + run: | + sleep 8 + curl -sf -o /dev/null http://localhost:3100/login || exit 1 + echo "✅ Web client deployed successfully"