How to to callback when clicked [Publish deploy] button


Is there any way that I can get callback via plugin or netlify function when clicked the Publish deploy
button on the UI ?

i don’t think that it would be possible to capture the click of the button - but it might (i am not sure) be able to capture when a deploy has been triggered, if that would be helpful?

could you describe in a bit more detail what you are trying to accomplish? we might be able to suggest a different way if we know your end goal.

Hi Perry,

Thanks for your reply.

I’ve noticed that [Publish Deploy] would invoke [Restore API] when clicked. Can we get notification when restored?

In our scenario, we want to know which deploy is live(via auto publishing or click the button manually).

If you’re planning to use the API, you can trigger a notification yourself. There’s no other way at the moment.