---
title: "Herald: tell everyone about your release | NightWorks.io"
description: "Herald posts your releases to Discord, Matrix, Slack, Microsoft Teams, email and the Fediverse, from one file."
url: "https://admin.herald.build/"
lang: "en"
---

# You publish a release. Herald tells everyone.

One file sends your news to Discord, Matrix, Slack, Microsoft Teams, email and the Fediverse. Run it again and nothing is posted twice.

Mac

```
gh release download -R nightworksio/herald \
  -p 'herald-aarch64-apple-darwin.tar.gz' -O - | tar xz
./herald init
```

Linux

```
gh release download -R nightworksio/herald \
  -p "herald-$(uname -m)-unknown-linux-musl.tar.gz" -O - | tar xz
./herald init
```

[Post your first release](https://admin.herald.build/docs/quick-start) [Windows and other downloads](https://github.com/nightworksio/herald/releases)

[Lemonfiber, the example in Herald's README](https://lemonfiber.app)

- **Discord**

  **sample-project v1.2.0**

  \## Added

  \- a sample change

  Release Changelog

- **Matrix**

  sample-project v1.2.0

  Added

  \- a sample change

  https://example.org/release

- **Slack**

  **sample-project v1.2.0**

  \*Added\*

  • a sample change

  https://example.org/release

- **Teams**

  **sample-project v1.2.0**

  \*\*Added\*\*

  \- a sample change

  Release Changelog

- **Email**

  Subject: **sample-project v1.2.0**

  Added

  \- a sample change

  https://example.org/release

- **Fediverse**

  sample-project v1.2.0

  Added

  a sample change

  https://example.org/release

## One release, six posts

Herald’s own sample release, as Herald writes it for each place. `herald preview` shows you yours.

## One file says what goes where

This is the file Herald announces its own releases with. It watches one repository on GitHub, and posts each release to a Discord channel with a thread and a pin.

Secrets are named in the file and never written in it.

```
#:schema https://raw.githubusercontent.com/nightworksio/herald/main/herald.schema.json
version = 1

[store]
kind = "markers"

[markers]
key = { secret = "HERALD_MARKER_SECRET" }

[destinations.discord]
kind = "discord"
token = { secret = "HERALD_DISCORD_TOKEN" }

[sources.herald]
kind = "github"
repository = "nightworksio/herald"

[[routes]]
id = "herald-releases"
sources = ["herald"]
kinds = ["release"]
destination = "discord"
channel = "1566184281406177531"
template = "package-release"
crosspost = true
thread = { name = "{{ event.project }} {{ event.attributes.version }}", archive_after = "14d" }
pin = "markers"

[templates.package-release]
title = "📦 {{ event.project }} {{ event.attributes.version }}{% if event.attributes.prerelease %} · pre-release{% endif %}"
body = "{{ event.body }}"
```

## Three steps to a first post

1. **Answer a few questions**

   `herald init` asks where your project lives and where its news goes. It writes `herald.toml` and the workflow that runs it.

2. **Store the secrets it names**

   It says how to make each one, and offers one test message, so you see it arrive.

3. **Publish a release**

   Herald announces it, and every one after it.

## It never says it twice

Herald remembers each thing it did: the post, the thread, the pin. Run it again and it sends only what is missing, which is usually nothing.

If it can’t tell whether a post was made, it stops instead of guessing.

## It runs where you do

| Where | What it does there |
| --- | --- |
| GitHub Actions | Announces your releases and keeps threads tidy. A workflow and one secret are enough. |
| Serverless | Also answers webhooks, buttons and commands, on Cloudflare Workers, AWS Lambda, Vercel, Netlify or Deno Deploy. |
| Container | The same, on your own machine, with SQLite or Postgres. |

## Herald is new

[Tell us what breaks](https://github.com/nightworksio/herald/issues).

---

NightWorks.io · info@nightworks.io
