I’m calling wrangler2 pages publish public --project-name=my-project-name from CI, which successfully deploys the contents of the public dir to a new preview environment.
Hi - thanks for the reply, it doesn’t seem to have worked though. I’ve tried --branch=main and --branch=master, both result in successful deploys to the “Preview” environment with those branch names as the source.
The project isn’t connected to a git repo, I selected “Direct Upload” when creating the project, and wasn’t given the option to set a default branch for Production. I don’t see anywhere now that I can set it.