Deploy Preview as deployment environments on GitHub

Looking at the site config, I’m able to make Netlify post a comment on PRs with preview deploy details but I couldn’t find if creation of GitHub deployments is supported?

Screenshot below is that of a Vercel Preview URL:

Netlify doesn’t work with the deployment event, it only adds comments. Any specific reason why this is better than the other or would be an important feature to have?

Deployment event are useful when triggering workflow dependent on the preview environment. For example if I want to run Cypress E2E tests against the deploy preview, at the moment i’d have to wait for the comment to update, similar to what GitHub - JakePartusch/wait-for-netlify-action: A GitHub action that will wait until a Netlify Preview deploy has completed before continuing on this does, wasting GH Action minutes, otherwise I can create a workflow that just listens for deployment_check triggers.

Having a deployment on the commit within GH also makes it possible to use / build third-party tools which are preview URL service-agnostic.

1 Like