H
Hono3mo ago
marcbejar

Git Autodeploy on Cloudflare

Hi! I've build an API with Hono via Bun + CF Workers. On the docs they have a section where they explain how to make auto-deploys to cloudflare on branch pushes via GitHub Actions. I've seen that cloudflare workers, they now have an option where you can connect to the repository, select the branch, the compilation command and the implementation command. When I deploy the worker from the CLI I use the command "bun run deploy:main" that runs "wrangler deploy --env main --minify src/index.ts". I have setted this last command on the implementation command but It gives an error on the deployment. Does someone managed to deploy workers via this way?
No description
No description
2 Replies
Aditya Mathur
Aditya Mathur3mo ago
Seems like the issue could be related to how you have connected your GitHub Repo. I would suggest to ask this in the Cloudflare discord as those might be able to help you better regarding this.
marcbejar
marcbejarOP3mo ago
Thank you, I will ask there

Did you find this page helpful?