Add deployment workflow for backend in Gitea

This commit is contained in:
Sony Surahmn
2026-04-29 16:29:40 +07:00
parent eb0885236e
commit 5c6b121290

View File

@ -0,0 +1,31 @@
name: Deploy Backend
on:
push:
branches:
- main
jobs:
deploy:
runs-on: linux
defaults:
run:
working-directory: /home/app/saude/entity
steps:
- name: Install SSH
run: |
if command -v apk >/dev/null; then
apk add --no-cache openssh-client
elif command -v apt-get >/dev/null; then
apt-get update && apt-get install -y openssh-client
fi
- name: Pull latest source from main
run: |
git fetch origin
git reset --hard origin/main
- name: Build
run: |
npm run build