Repository navigation
Deploy to Render from CI after tests pass on main - #9
Merged
Merged
Conversation
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.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
deployjob in.github/workflows/ci.yml: after thetestjob passes on a push tomain, it calls the Render service's Deploy Hook. A failing build never gets deployed.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.Setup after merging
RENDER_DEPLOY_HOOK, paste the URL.Testing
testand is gated to pushes tomain.mainafter merging. With the secret set it triggers a deploy; without it, it logs a skip.