25 lines
586 B
YAML
25 lines
586 B
YAML
|
|
name: Deploy to Production
|
||
|
|
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
branches:
|
||
|
|
- main
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
deploy:
|
||
|
|
runs-on: self-hosted
|
||
|
|
steps:
|
||
|
|
- name: Code aktualisieren
|
||
|
|
run: |
|
||
|
|
git -C /opt/skillguard fetch /opt/forgejo/data/git/repositories/avameo/skillguard.git main
|
||
|
|
git -C /opt/skillguard reset --hard FETCH_HEAD
|
||
|
|
|
||
|
|
- name: Dependencies installieren
|
||
|
|
run: npm ci --prefix /opt/skillguard
|
||
|
|
|
||
|
|
- name: Build ausführen
|
||
|
|
run: npm run build --prefix /opt/skillguard
|
||
|
|
|
||
|
|
- name: Service neu starten
|
||
|
|
run: sudo systemctl restart skillguard.service
|