Is there are way to run a script after successful build?

I use Cloudflare pages to build and deploy a site every time the source code changes on GitHub, but I would also like to run a script after a successful build/deploy, because it requires an URL on the deployed site.

Is there a way, either as a native Cloudflare feature, or an external one?


There’s not really an official way (though I would love to send a webhook or something), what people generally do is just run it at the end of their build command or use something like GitHub Actions to poll the API.

I made an action a while back to do the second option which is available here:


This is really nice, thanks! :pray:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.