# A deploy duck from CI

> Waddle celebrates when a deploy goes live. Three ways to get the news to it, depending on where the deploy runs.

## Deploys GitHub knows about

No code to write. Waddle watches GitHub for the deploys of the repos you pick, from any host that tells GitHub: Vercel, Render, Railway, GitHub Pages, Actions, and Netlify through its commit status. Turn it on in Preferences → News → Deploys: add a fine-grained GitHub token with Deployments set to Read-only (on Netlify, Commit statuses too), then tick the repos. Production is on to start, previews off.

## Deploys from your Mac

A deploy script on your own Mac can tell Waddle when it's done:

```sh
./deploy.sh && waddle deploy limen-fm live || waddle deploy limen-fm failed
```

Or from any language, `POST localhost:4404/deploy` with `{"name","outcome"}`: see [Finished commands and deploys](https://docs.waddle.sh/commands.md).

## Deploys anywhere else

CI runners can't reach your Mac. Waddle Club members can send it to their [quack address](https://docs.waddle.sh/quack-address.md) instead, from any CI:

```yaml
- name: Tell Waddle
  if: always()
  run: |
    curl -fsS "$WADDLE_QUACK" -H 'content-type: application/json' -d "{\"title\":\"deploy\",\"text\":\"${{ github.repository }}: ${{ job.status }}\"}" || true
  env:
    WADDLE_QUACK: ${{ secrets.WADDLE_QUACK }}
```

Keep the address in your CI's secrets: whoever has it can make Waddle talk. The `|| true` keeps a busy or lapsed address (429, 402) from turning the job red.
