during deployment temporary pull env and code to rollback deployment possibly?
api.uploadEnv, api.uploadCode, and api.uploadPublishedCode are invoked sequentially without catching potential failures. Consider adding error handling or rollback logic to ensure partial deployments don’t leave the environment in an inconsistent state.