name: Deploy to VM on: push: branches: [main] jobs: deploy: runs-on: ubuntu-latest steps: - name: Pull latest code and rebuild run: | cd /opt/digital-home/smart-home-tablet git pull origin main # Restart Coolify service (rebuild + restart) curl -X POST 'https://coolify.digital-home.site/api/v1/services/yfh53kixpwkjlo4zibglx4n2/restart' -H 'Authorization: Bearer 4|8e75d9edfac009446b19abca1b9fdfadbe6da6b8f3efb0526520f0d2e3cfc266' -H 'Content-Type: application/json' || true echo 'Deploy triggered'