/repos/{owner}/{repo}/releasesCreate a release
Users with push access to the repository can create a release.
[!NOTE] If the commit identified by
target_commitish(or, whentarget_commitishis omitted, the latest commit on the default branch) adds or modifies any file under.github/workflows/relative to the repository's default branch, the authenticating token must be authorized to modify workflows. Otherwise, this endpoint returns404 Not Found; some authentication paths surface403 Resource not accessible by integrationinstead.
OAuth app tokens and personal access tokens (classic) need the workflow scope when the resolved target commit modifies workflow files. Fine-grained access tokens and GitHub App installation tokens also need the "Workflows" repository permission (write). The GITHUB_TOKEN available to GitHub Actions cannot be authorized for this; for more information, see "Automatic token authentication".
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "Rate limits for the API" and "Best practices for using the REST API."
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
A 404 is returned: Not Found if the discussion category name is invalid. A 422 is returned: Validation failed, or the endpoint has been spammed.