createSiteFromGitHub
Deploy a Netlify site directly from a GitHub repository by specifying the repository, branch, build command, and publish directory.
Instructions
Create a new Netlify site from a GitHub repository
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch | Yes | Branch to deploy from | |
buildCommand | Yes | Build command to run | |
name | Yes | Name for the new site | |
publishDir | Yes | Directory containing the built files to publish | |
repo | Yes | GitHub repository in format owner/repo |
Input Schema (JSON Schema)
{
"properties": {
"branch": {
"description": "Branch to deploy from",
"type": "string"
},
"buildCommand": {
"description": "Build command to run",
"type": "string"
},
"name": {
"description": "Name for the new site",
"type": "string"
},
"publishDir": {
"description": "Directory containing the built files to publish",
"type": "string"
},
"repo": {
"description": "GitHub repository in format owner/repo",
"type": "string"
}
},
"required": [
"name",
"repo",
"branch",
"buildCommand",
"publishDir"
],
"type": "object"
}