feat: initial GitHub webhook receiver implementation #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Webhook Receiver | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: [self-hosted, app-server] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: pdm install --prod | |
| - name: Run tests | |
| run: pdm run pytest | |
| - name: Deploy service | |
| run: | | |
| sudo systemctl restart github-webhook-receiver | |
| sleep 2 | |
| curl -f http://localhost:9000/health || exit 1 | |
| - name: Deployment successful | |
| run: echo "✅ Webhook receiver deployed successfully" |