> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Publish site

> Publishes a site or page to its Webflow and custom domains.

`webflow.publishSite` publishes a site or page to its Webflow and custom domains.

## Example

```ts automations/webflow-publish-site.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { webflow } from "automate.ax/webflow"

export default automation("Publish site", () => {
  onDashboardRun({ title: "Publish site" })

  webflow.publishSite({
    siteId: "site-id",
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires the `sites:write` OAuth scope.

| Field                       | Type       | Required | Description                                |
| --------------------------- | ---------- | -------- | ------------------------------------------ |
| `customDomains`             | `string[]` | No       | Webflow `customDomains` value.             |
| `publishToWebflowSubdomain` | `boolean`  | No       | Webflow `publishToWebflowSubdomain` value. |
| `siteId`                    | `string`   | Yes      | Webflow site ID.                           |

<Note>
  Webflow limits site publishing to one successful publish per minute. Batch
  related changes before this action.
</Note>

## Output

Returns an object with the fields below. Automate.ax converts provider `Date` values to ISO 8601 strings.

| Field                       | Type               | Description                                |
| --------------------------- | ------------------ | ------------------------------------------ |
| `customDomains`             | `Webflow.Domain[]` | Webflow `customDomains` value.             |
| `publishToWebflowSubdomain` | `boolean`          | Webflow `publishToWebflowSubdomain` value. |
