add leaning UI #8
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 to Render | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Trigger Render Deploy Hook | |
| run: | | |
| curl --fail -X POST "${{ secrets.RENDER_DEPLOY_HOOK_URL }}" | |
| - name: Wait for deployment health check | |
| run: | | |
| echo "Waiting 60s for Render deployment to spin up..." | |
| sleep 60 | |
| curl --fail --retry 5 --retry-delay 15 "${{ secrets.RENDER_DEPLOY_URL }}/" || exit 1 | |
| - name: Comment deploy URL on PR | |
| if: github.event.pull_request | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: `🚀 Deployed to production: ${{ secrets.RENDER_DEPLOY_URL }}` | |
| }) |