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 initLinux
gh release download -R nightworksio/herald \
-p "herald-$(uname -m)-unknown-linux-musl.tar.gz" -O - | tar xz
./herald initOne 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
Answer a few questions
herald initasks where your project lives and where its news goes. It writesherald.tomland the workflow that runs it.Store the secrets it names
It says how to make each one, and offers one test message, so you see it arrive.
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. |