This commit is contained in:
2026-08-29 10:37:05 +05:00
parent 069b51a84c
commit eb1849ce82
3 changed files with 39 additions and 7 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Deploy
on:
push:
branches: [main]
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
cp -r web/dist/* ~/apps/hub/dist/
cp bin/hub-api ~/apps/hub/hub-api
chmod +x ~/apps/hub/hub-api
systemctl --user restart hub-api