Workers version deployment with build

Hello. I have a Workers project that needs to be
build
prior to deploying. Cloudflare automatically builds and deploys a new version when there's a commit to the main branch on GitHub, which is helpful. I understand that automatically creating Preview Deployments similar to Pages isn't supported for Workers yet. That's fine. However, how can I create a version that isn't deployed automatically? Doing wrangler versions upload creates a broken version of my app, I'm suspecting due to the necessary
build
step prior to that, as things are working locally. Should versions upload suffice even when there's a build step, and I'm simply having a "works locally, fails on remote" problem here?
Was this page helpful?