Skip to main content
github.createDeployment creates a deployment record for a ref.
automations/create-github-deployment.automation.ts
Provide the repository and branch, tag, or commit ref. task defaults to "deploy"; autoMerge defaults to true. Omit requiredContexts to require every unique commit-status context before deployment. Pass an empty array to bypass status checks, or list the exact contexts GitHub must verify. Optional fields also include JSON payload, environment, description, transientEnvironment, and productionEnvironment. Returns the deployment’s id, ref, and environment, or GitHub’s accepted auto-merge message when it must update the ref first. Requires Deployments write permission.