Cloudflare has a page on Workers CI/CD builds: https://developers.cloudflare.com/workers/ci-cd/builds/
It details how to set it up from within the Cloudflare dashboard.
If you know how to use GitHub Actions, there are also Actions available, like https://github.com/cloudflare/wrangler-action.