ci: add Gitea Actions deploy workflow
This commit is contained in:
parent
ea58d0d102
commit
9f7fca3ed1
|
|
@ -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
|
||||
Loading…
Reference in New Issue