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