Here is my scenario:
On GitHub, I’ve made some “GitHub Actions” that use the netlify cli to publish a deploy preview.
The issue I’m having is that once I publish the deploy preview, there is no hook to tell github that for the PR I have open, netlify should tell github that my PR has had a deploy.
Fwiw, I know I could just let the Netlify UI handle this and build and deploy and notify for me, but I want more control over the build environment, which is why I’m doing this on C.I. / GitHub Actions (but really, the specific platform is irrelevant, as this should be possible with bash / the netlify cli?)
I was figuring that maybe I could manually trigger a Deploy Preview Notification somehow?
Or maybe this is a bug?
Or is there some super obvious way to achieve what I want that I have missed?
This is what the last success looked like:
I was hoping that once a deploy preview was made, some netlify stuff would show up in there.
Which is ok if I were to never need to “Gate” deploys.
Additionally, there are a lot of extra entries in the checks now. All I really need is deploy/netlify
When we use the term deploy preview, we are talking only about builds from PR’s:
There is no way except by pushing another commit from the PR for you to build a deploy preview. I can cause a rebuild on a deploy preview for you if you ask me to, but it will use all old settings from the last run, so it’s not clear what benefit that would bring (e.g. won’t see changed environment variables or other build settings; will pull the same commit ref from your repo).
You can publish a “draft” deploy manually using the netlify CLI, but it will be its own thing based on your local files, unrelated to anything in git.
It is not possible. Deploy Previews are based on PR’s, and PR’s only come from git; manual deploys do not come from git. This is not a feature we plan to change.
You always have been able to deploy a “draft” deploy that you can browse without it being published in production - that’s the default for the CLI