ci: auto-deploy on push (Gitea Actions)
Some checks are pending
Deploy Web Client / deploy (push) Waiting to run

This commit is contained in:
Markov 2026-02-15 19:08:12 +01:00
parent e655bba89b
commit 4ac7e79a8a

View File

@ -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"