Skip to content

Deploy to Render from CI after tests pass on main - #9

Merged
HalcyonVector merged 1 commit into
mainfrom
feature/render-deploy-hook
Nov 1, 2026
Merged

HalcyonVector merged 1 commit into
mainfrom
feature/render-deploy-hook

Conversation

@HalcyonVector

@HalcyonVector HalcyonVector commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Render's auto-deploy ("On Commit") isn't firing on new commits, most likely because its GitHub connection to the repo isn't receiving events.

Change

  • New deploy job in .github/workflows/ci.yml: after the test job passes on a push to main, it calls the Render service's Deploy Hook. A failing build never gets deployed.
  • The hook URL comes from the repository secret RENDER_DEPLOY_HOOK. The job never runs for pull requests, so the secret isn't exposed to forks, and it skips itself while the secret isn't set.
  • README documents the one-time setup.

Setup after merging

  1. Render → service → Settings → Deploy Hook → copy the URL.
  2. GitHub → repo Settings → Secrets and variables → Actions → New repository secret: name RENDER_DEPLOY_HOOK, paste the URL.
  3. Optional: set Render's Auto-Deploy to Off so a deploy isn't triggered twice if Render's own connection starts working again.

Testing

  • Workflow YAML validated; the deploy job depends on test and is gated to pushes to main.
  • It runs for real on the first push to main after merging. With the secret set it triggers a deploy; without it, it logs a skip.

Render's own auto-deploy wasn't firing on new commits. The CI workflow now
has a deploy job that, after the test job passes on a push to main, calls
the service's Deploy Hook (stored as the RENDER_DEPLOY_HOOK repository
secret). It never runs for pull requests, so the secret isn't exposed to
forks, and it skips itself while the secret isn't set. README documents
the one-time setup.
@HalcyonVector
HalcyonVector merged commit acec4c2 into main Nov 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant