Files
pwa-homelab-mon/.gitea/workflows/deploy.yml
T
alexey.bagno 9b477ae5c3
Deploy / deploy (push) Successful in 8s
CI: removed old web/dist
2026-08-29 11:06:48 +05:00

27 lines
714 B
YAML

name: Deploy
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build (frontend + API via make)
run: make web server
- name: Deploy to box
run: |
mkdir -p ~/apps/hub/dist ~/apps/hub/scripts
cp bin/hub-api ~/apps/hub/hub-api.new
mv -f ~/apps/hub/hub-api.new ~/apps/hub/hub-api
chmod +x ~/apps/hub/hub-api
cp config.yaml ~/apps/hub/config.yaml
cp -r scripts/. ~/apps/hub/scripts/
cp -r dist/. ~/apps/hub/dist/
chmod +x ~/apps/hub/hub-api ~/apps/hub/scripts/*
systemctl --user restart hub-api