---
title: "Deploys"
description: "Every merge to your docs branch builds and checks your site, and every docs pull request gets a preview."
---

You don't publish by hand. A merge to your docs branch builds your site, checks it, and puts it live only when every
check passes. Open **Deploys** in the sidebar to watch it.

1. **You push or merge**

   A push to your docs branch that touches your docs folder starts a build.

2. **Specly checks it**

   Pages, links and colour contrast are all checked before anything is uploaded.

3. **It goes live**

   When every check passes, readers get the new build in one step. If a check fails, readers keep the last good
   version.

## Builds

**Deploys** opens on **Builds**. The pill at the top says **Live** with the commit the site is on, or **Not live yet**.
Filter the list with **All**, **Live**, **Failed** and **Previews**. Each row shows its status, commit, how long it
took and when it started.

The first build of a new site checks every page and link, then puts the site on `<slug>.specly.xyz`. Choose
**Build and go live** to start it.

Choose a build to see its steps and log. A build that **Failed** explains **Why it stopped**: the end of its error and
the broken links that stopped it, with what else the build found. Fix the file and merge, and a new build starts on its
own. **Retry build** builds the same commit again, so a check that failed fails again until the docs change.

## Deploy now

Choose **Deploy now** at the top of **Deploys** to build the latest commit on your docs branch without a push. Use it
after a change that didn't come from a push. CI can do the same with an [organization API key](/api-reference/introduction).

## Previews

Every docs pull request into your docs branch gets its own preview at `pr-<n>-<slug>.specly.xyz`, where `<n>` is the
pull request's number. It's built with the same checks, never touches the live site, and goes away when the pull
request closes.

Open **Deploys › Previews** to see each one as **Building**, **Ready** or **Failed**. **Open preview** opens it, and
**See what broke** opens the failed build. A pull request whose address would be longer than DNS allows, 63
characters, has no preview.

## Your own domain

**Deploys › Domains** shows your Specly address, `<slug>.specly.xyz`, and lets you serve the same site on a domain of
your own, like `docs.your-domain.com`. Your Specly address keeps working after you add one. Each site can have one
domain, and only an admin can add or remove it.

1. **Add the domain**

   Under **Your own domain**, type it in **Add a domain** and choose **Add domain**.

2. **Add the DNS record**

   Specly shows a `CNAME` record: its name is your domain, and its value is `cname.specly.xyz`. Add it where you
   manage DNS. Until it's found, the domain shows **Waiting for DNS**.

3. **Check again**

   Choose **Check again**. DNS changes can take a few minutes. Once the record is found, HTTPS turns on by itself and
   the domain shows **HTTPS on**.

When a domain shows **Not set up**, check the record, then choose **Check again**, or remove the domain and add it
again. A domain another site already uses can't be added. **Remove** takes your site back to its Specly address only.
If a domain that was live stops working, admins hear about it in their [inbox](/team/inbox).

## When a build fails

A failed build shows what stopped it:

- A broken link or an unknown component is named with its file and line, and the page it's on.
- A `theme.json` error, or a colour that fails contrast, is named in the log.
- A build that never reports back shows **No result** after 30 minutes. Choose **Retry build**.

You can ask the docs agent to fix it. See [Docs agent](/ai/docs-agent).
