---
title: publish_release
published: true
tier: free
index: 8
---

# publish_release

Create an immutable release and update the published site.

**Arguments.** `siteId`, `branch`, full 40-character `commit`. Optional `version` and `license` override the source defaults.

**Returns.** `{id}` for the new release. After an uncertain response, look up the commit with `list_releases` before attempting another publish.

```json
{"siteId":"PROJECT_ID","branch":"main","commit":"0123456789abcdef0123456789abcdef01234567"}
```
