repos
Create a GitHub Pages deployment
Create a GitHub Pages deployment for a repository.
Users must have write permissions. GitHub Apps must have the pages:write permission to use this endpoint.
post/repos/{owner}/{repo}/pages/deployment
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository without the .git extension. The name is not case sensitive.
Request body
Response
Response
Example response
{
"status_url": "https://api.github.com/repos/github/hello-world/pages/deployments/4fd754f7e594640989b406850d0bc8f06a121251/status",
"page_url": "hello-world.github.io",
"preview_url": "monalisa-1231a2312sa32-23sda74.drafts.github.io"
}