All four bump workflows triggered on `release: types: [released]`, which never fires here: create-release.yml publishes the release with GITHUB_TOKEN, and GitHub suppresses workflow-triggering events for GITHUB_TOKEN actions. They had zero runs across every release up to v1.13.1. Switch them to `workflow_run` on "Create Release Assets" completion, filtered to a successful tag push. That also removes a latent race: `released` fired while the matrix legs were still uploading assets, whereas workflow_run fires after all of them finish. The workflow_run payload carries no draft/prerelease flags, so add a resolve-release composite action that reads them back from the API and feeds assert-stable-release, keeping the defense-in-depth guard intact instead of inferring stability from the tag string alone. Also gate the cask/winget bumps on the package existing upstream. Neither `amethyst-nostr` nor `VitorPamplona.Amethyst` has been bootstrapped, and bump-cask-pr/winget-releaser can only update an existing package — without the gate, fixing the trigger would file a spurious [release-ops] issue on every release. Docs: correct the claims this uncovered — Homebrew/Winget are not shipping, macOS is arm64-only (no Intel DMG), the release carries 31 assets (13 Android, not 12), Maven Central publishes from a step inside deploy-android and lags repo1 by tens of minutes, RELEASE_NOTES_ID is minor-releases-only, and note the git-credential-manager hang that blocks the release push.
14 KiB
Release Ops (Amethyst maintainers)
This is the operational checklist the Amethyst team follows to ship a
release — the account-specific, push-the-buttons side of cutting a version.
The generic build/release mechanics (how the CI pipeline works, the asset
naming contract, the secret names a fork must set, desktop packaging) live in
BUILDING.md. Read that first; this doc only covers what is
specific to shipping the official Amethyst artifacts.
Forks: you do not need this file.
BUILDING.mdhas everything you need to build and release your own fork. This describes our accounts and channels.
At a glance
A release is one tag push that fans out to four live distribution channels:
| Channel | Mechanism | Who pushes |
|---|---|---|
| GitHub Releases | Automatic — the Create Release Assets workflow builds + signs everything on the v* tag |
CI |
| Google Play | Manual — download the signed AAB from the GH Release, upload in Play Console | Maintainer |
| F-Droid | Pull — F-Droid's build server builds the fdroid flavor from source when it sees the new tag |
F-Droid (we just maintain the recipe + metadata) |
| Zapstore | zsp publish reads zapstore.yaml, signs a Nostr release event with Amethyst's nsec |
Maintainer |
| Homebrew + Winget | ⚠️ Not shipping. The bump workflows run, but skip: neither package exists upstream yet | Nobody (see § 3) |
Maven Central (the quartz library) also publishes automatically from the same
workflow — as a step at the end of the deploy-android job, not a job of its
own, so don't expect to find it in the run's job list.
1. Pre-tag checklist
-
Bump the version in
gradle/libs.versions.toml— both keys:app = "1.12.1" # semver, drives every module + the tag appCode = "449" # Android versionCode, monotonic — must incrementThat single edit propagates to Android (
versionName/versionCode), Desktop & CLI (packageVersion),quartz(Maven version) andgeode(RelayInfo.VERSION). Nothing else hardcodes the version. -
Write the changelog as
docs/changelog/vMAJOR.MINOR.PP.md(zero-padded, e.g.v1.12.01.md) and add it todocs/changelog/README.md. Follow the house style: plain text, short verb-first sentences.For the
## Translationssection, generate the credits instead of writing them by hand — no token needed:scripts/translators.shThis runs offline. It reads
docs/changelog/translators.json(kept next to the changelogs), which CI keeps fresh: the Crowdin sync workflow'sseed-translatorsjob records everyone who has translated since the lastv*tag, with their languages, in the file'ssinceLastTaglist, and accumulates their npubs in the forever-growingmappingsregistry. The script resolves that list to npubs and prints the## Translationsblock grouped by language. Contributors with no npub yet are listed underUNMAPPED— credit them by hand, then add their npub undermappingsso future releases pick them up automatically. (To re-query Crowdin live as a sanity check, runscripts/translators.sh --seedwithCROWDIN_PROJECT_ID/CROWDIN_PERSONAL_TOKENset, which refreshes the file.) -
Publish the release-notes note on Nostr — minor releases only. In practice this id has only ever been bumped on
x.y.0(1.11.0, 1.12.0, 1.13.0); patch releases leave it pointing at their minor's note. Publish with Amethyst's account and paste the event id intoamethyst/build.gradle.kts:buildConfigField("String", "RELEASE_NOTES_ID", "\"<new-event-id-hex>\"")This id is what the in-app drawer's "Release Notes" link and the donation card open (
DrawerContent.kt,ShowDonationCard.kt). It must point at the note for this version, so publish the note before tagging and commit the new id together with the version bump. -
Sanity-build locally (optional but cheap):
./gradlew assembleReleaseand a desktoppackageDistributionForCurrentOS, or run the workflow's dry-run (see BUILDING.md § Dry-run).
2. Cut the release
Commit, tag, push — see BUILDING.md § Release runbook
for the exact commands. The tag must equal app from the catalog (the workflow
asserts this and fails fast otherwise). A clean vMAJOR.MINOR.PATCH tag is
classified stable and runs the Homebrew/Winget bump workflows; anything with
a -rc/-beta/-alpha/-dev suffix is a prerelease and skips them.
Heads-up on the git push: this repo has git-credential-manager configured as
a credential helper, and it blocks on an interactive prompt (a plain
GIT_TERMINAL_PROMPT=0 does not stop it — the push just hangs). If that
happens, push using gh's helper for the one command:
git -c credential.helper= -c credential.helper='!gh auth git-credential' push upstream main
When the Create Release Assets workflow finishes (~25–30 min) the GH Release
holds 31 assets, per the asset-name contract:
- Android (13): 5 Google Play APKs + 5 F-Droid APKs + 2 AABs + the F-Droid
.apksset for Accrescent (amethyst-googleplay-*-v…apk/.aab,amethyst-fdroid-*-v…apk/.aab/.apks) - Desktop (8): DMG (macOS arm64 only — there is no Intel DMG), MSI + zip, DEB, RPM, AppImage, flatpak, tar.gz
- CLI (5): the
amyartifacts - Relay (5): the
geodeartifacts, plus the geode Docker image - Maven Central:
com.vitorpamplona.quartz:quartz:<version>published.repo1.maven.orglags the publish by tens of minutes — a 404 right after the run is normal. Confirm the step's log says "Deployment is being published to Maven Central", and compare against the previous version's POM before concluding anything is broken.
3. Per-channel shipping
GitHub Releases — automatic
Nothing to do beyond pushing the tag. Verify the asset count and that Intel + ARM DMGs are both present (BUILDING.md § Verify).
Google Play — manual upload
- Download
amethyst-googleplay-<version>.aabfrom the GH Release. - Play Console → app
com.vitorpamplona.amethyst→ Production (or the staged-rollout track we're using) → create release → upload the AAB. - The release notes field can reuse the
docs/changelogtext. - Roll out.
F-Droid — pull / build-from-source
F-Droid does not accept an upload from us. Its build server polls the repo,
and when it sees the new v* tag it builds the fdroid product flavor from
source (reproducibly) per the recipe in the separate
fdroiddata repo
(metadata/com.vitorpamplona.amethyst.yml), then signs and publishes to the
F-Droid repo on its own cadence.
What we own to keep that working:
- The
fdroidflavor (amethyst/src/fdroid/…) must stay free of proprietary deps — it swaps Firebase/Google services for UnifiedPush and no-op/open implementations (ML Kit, writing assistant, push). Google-only libraries live behind theplayflavor. - The fastlane metadata under
fastlane/metadata/android/(descriptions, images). F-Droid reads per-version changelogs fromfastlane/metadata/android/en-US/changelogs/<versionCode>.txtif present — add one (e.g.449.txt) when we want a changelog shown on F-Droid; otherwise none is displayed. - The
AutoUpdateMode/UpdateCheckModein the fdroiddata recipe tracks tags, so a correctvX.Y.Ztag + bumpedversionCodeis usually all F-Droid needs.
After a release, just confirm F-Droid picked up the new version (it can lag a few days): https://f-droid.org/packages/com.vitorpamplona.amethyst/.
Zapstore — zsp publish with Amethyst's nsec
Zapstore is a Nostr-native app store. The zsp CLI
reads zapstore.yaml at the repo root (name, summary,
description, tags, license, icon, screenshots, supported_nips, and the
variants regexes that match our *-fdroid-*.apk / *-googleplay-*.apk
GH-release assets), then publishes a signed software-release event to Nostr
relays.
# from the repo root, after the GH Release assets exist
zsp publish
It signs with Amethyst's nsec — provide the key the way zsp expects
(SIGN_WITH env var / prompt / its own config), never commit it.
Relays. zsp does not take relays from zapstore.yaml; it reads the
RELAY_URLS env var (comma-separated) and defaults to wss://relay.zapstore.dev
when unset. To fan the release event out to more relays for discoverability,
set RELAY_URLS for the run:
RELAY_URLS="wss://relay.zapstore.dev,wss://relay.damus.io,wss://nos.lol,wss://vitor.nostr1.com" \
SIGN_WITH=<amethyst-nsec> zsp publish
Keep wss://relay.zapstore.dev in the list — that is the relay the Zapstore app
itself reads from.
Homebrew + Winget — ⚠️ not shipping yet
bump-homebrew.yml and bump-winget.yml are wired to open PRs against
Homebrew/homebrew-cask (cask amethyst-nostr) and microsoft/winget-pkgs
(VitorPamplona.Amethyst) — but neither package has ever been submitted
upstream, so both workflows detect that and skip with a ::warning::. As of
v1.13.1 these two channels deliver nothing; macOS and Windows users get the
desktop app from GitHub Releases only.
Two separate faults kept this invisible until v1.13.1, both now fixed:
- The workflows never ran at all — for any release. They triggered on
release: types: [released], and GitHub does not raise workflow-triggering events for a release created byGITHUB_TOKEN, which is exactly howcreate-release.ymlcreates it. They now trigger onworkflow_runafterCreate Release Assetssucceeds, which also fixes a latent race — the old event fired while assets were still uploading. - Nothing exists upstream to bump.
brew bump-cask-prandwinget-releasercan only update an existing package. The first submission is a manual, human-reviewed PR: BUILDING.md § Homebrew cask (one-time initial PR) and § Winget (one-time initial submission).
Until someone does that bootstrap, a green release run means the bump workflows skipped cleanly — not that Homebrew/Winget shipped. Check the run's warnings if you want to confirm which case you're in.
The two amy / geode Homebrew formula workflows are different: they only
sync the in-repo reference .rb files and open a PR against this repo, so
they do real work on every release. Merge those PRs to keep the formulae ready
for their eventual homebrew-core submission.
4. Operated infrastructure
Push notification server
The Google Play (FCM) flavor delivers push through a server we operate at
push.amethyst.social, built from
vitorpamplona/amethyst-push-notif-server.
It registers devices, watches their NIP-65 inbox / NIP-17 DM relays, and sends
wake-up pushes.
playflavor → push via this server (Firebase/FCM).fdroidflavor → UnifiedPush through a distributor app the user installs (e.g. ntfy); it does not use our server.- Both are complemented by the on-device always-on
NotificationRelayService(seePULL_NOTIFICATION.md), which keeps the user's relay connections alive without any push server at all.
The push server has its own repo, deploy, and release cadence — a normal app release does not redeploy it. Coordinate a server deploy only when the app changes the registration/push contract (token format, payload, or endpoint), so the running server stays compatible with the shipped app.
5. Secrets ownership & rotation
The workflow's required secrets and what they sign are inventoried generically
in BUILDING.md § Secrets. Amethyst-specific
ownership:
| Secret(s) | Protects | Rotation |
|---|---|---|
SIGNING_KEY, KEY_ALIAS, KEY_STORE_PASSWORD, KEY_PASSWORD |
The Android upload keystore — losing/leaking it is the worst case; Play app signing identity | Keep the keystore backed up offline; never rotate casually (Play upload key reset is a support process) |
SONATYPE_USERNAME, SONATYPE_PASSWORD |
Maven Central namespace com.vitorpamplona |
On compromise |
SIGNING_PRIVATE_KEY, SIGNING_PASSWORD |
The GPG key signing Maven artifacts | Per GPG key expiry |
HOMEBREW_TOKEN, WINGET_TOKEN |
Cask + winget bump PRs | 90-day cadence (see BUILDING.md § Bootstrap) |
CROWDIN_PERSONAL_TOKEN, CROWDIN_PROJECT_ID |
Translation sync | On compromise |
Owner assignments and rotation reminders live with the team (issue tracker).
6. Post-release verification
- GH Release: 31 assets, sizes sane, and the asset-name set matches the
previous release (see the
diffone-liner in BUILDING.md § Release runbook). macOS is arm64-only — do not look for an Intel DMG. - Maven Central:
quartz:<version>resolves (allow tens of minutes of propagation; the publish step's log is the authoritative signal). - Play Console: rollout started, no policy rejection.
- Zapstore: release event visible.
- F-Droid: new version detected (may lag days).
amy/geodeHomebrew formula-sync PRs opened against this repo — merge them.- Homebrew + Winget: expected to skip until bootstrapped (§ 3). If they ever start opening real PRs, that means someone landed the bootstrap.
- In-app "Release Notes" link opens the note matching
RELEASE_NOTES_ID(only bumped on minor releases — patches keep pointing at the x.y.0 note). - Push still works on a
playbuild (only if the push contract changed — see § 4); UnifiedPush still works on anfdroidbuild.
If anything ships broken, see BUILDING.md § Incident response.