ci: add Gitea Actions deploy workflow

This commit is contained in:
Rokojori 2026-07-13 19:54:55 +02:00
parent ea58d0d102
commit 9f7fca3ed1
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Pull latest
run: git -C /opt/roject pull
- name: Install dependencies
run: npm --prefix /opt/roject ci --omit=dev
- name: Build
run: npm --prefix /opt/roject run build
- name: Restart service
run: systemctl restart roject