Deploy Backend to Render #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 Backend to Render | |
| on: | |
| workflow_run: | |
| workflows: ["Unit And E2E Tests"] | |
| types: | |
| - completed | |
| jobs: | |
| deploy-backend: | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} # ✅ only if CI succeeded | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Render deploy | |
| run: | | |
| echo "Triggering Render deploy for backend..." | |
| curl -X POST "https://api.render.com/v1/services/${{ secrets.RENDER_SERVICE_ID }}/deploys" \ | |
| -H "Authorization: Bearer ${{ secrets.RENDER_API_KEY }}" \ | |
| -H "Content-Type: application/json" |