Files
pwa-homelab-mon/.gitea/workflows/deploy.yml
T
alexey.bagno 9f6a167d04
Deploy / deploy (push) Failing after 7s
CI fix for script config log
2026-08-29 10:43:55 +05:00

26 lines
637 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
cp -r web/dist/* ~/apps/hub/dist/
cp bin/hub-api ~/apps/hub/hub-api
chmod +x ~/apps/hub/hub-api
cp config.yaml ~/apps/hub/config.yaml
cp -r scripts/* ~/apps/hub/scripts/
chmod +x ~/apps/hub/hub-api ~/apps/hub/scripts/*
systemctl --user restart hub-api