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: https://github.com/WalshyDev/cf-pages-await
This is really nice, thanks!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.