Skip to content
Back to skills

Release

ASecurity

Cut a release of the Lyrion Dashboard. Use this whenever a task is about shipping a new version — bumping the version, tagging, the Release workflow, or how the Android APK and the Docker image get built and published. Covers the single source of truth for the version, the manual `Release` → publish → `android.yml` + `docker.yml` chain, the versionCode packing, and the F-Droid constraint that keeps versions static in source. Reach for it before touching `VERSION`, `release.yml`, or the Androi...

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
devopsdockergit

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add werdeil/lyrion-dashboard --skill release --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Release?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Release
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/werdeil-release/badge)](https://www.skillsdirectory.com/skills/werdeil-release)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: release
description: >-
  Cut a release of the Lyrion Dashboard. Use this whenever a task is about
  shipping a new version — bumping the version, tagging, the Release workflow,
  or how the Android APK and the Docker image get built and published. Covers
  the single source of truth for the version, the manual `Release` → publish →
  `android.yml` + `docker.yml` chain, the versionCode packing, and the F-Droid
  constraint that keeps versions static in source. Reach for it before touching `VERSION`, `release.yml`, or
  the Android `versionName`/`versionCode`.
---

# Cutting a release

Releases are **cut manually** from the GitHub UI, not on every merge. The flow is deliberately two-step: a workflow prepares a *draft*, a human publishes it, and publishing triggers the APK build and the image push.

## The version, and its two mirrors

The semantic version lives in **three** places that must agree, and the release workflow is what keeps them in sync:

1. `VERSION` (repo root) — the **single source of truth** for the web app. `config.py` reads it at import and exposes it on `/health`.
2. `android/app/build.gradle.kts` — `versionName` (the semver) and `versionCode` (an integer). These are **static literals on purpose**: F-Droid builds from the source at the tag and parses them from this file, so they must be committed, not computed at build time.
3. The git tag `vX.Y.Z`.

`versionCode` packs the semver as **`X*10000 + Y*100 + Z`** (e.g. `0.2.1` → `201`, `1.0.0` → `10000`). Keep that formula — the Release workflow and the gradle comment both rely on it.

## The Release workflow (`.github/workflows/release.yml`)

Triggered by `workflow_dispatch` with inputs `version` (X.Y.Z, no leading `v`) and `prerelease`. It:

1. Validates the version is semver and the tag doesn't already exist.
2. Bumps `versionCode`/`versionName` in `build.gradle.kts` (via `sed`, failing loudly if nothing changed) and writes `VERSION`.
3. Commits `chore(release): vX.Y.Z`, tags `vX.Y.Z`, pushes both.
4. Opens a **draft** GitHub release with auto-generated notes (`--generate-notes`), grouped by PR label into Features (`feat`), Fixes (`fix`), Dependencies and Other changes per `.github/release.yml`.

It stops there. Nothing is published automatically.

## Publishing → the APK (`.github/workflows/android.yml`)

Publishing the draft fires `android.yml` on `release: published`, which:

- Re-checks the tag matches `versionName` in `build.gradle.kts` (F-Droid coherence guard) — a mismatch fails the job.
- Builds the **release APK**, which **must** be signed. The four repo secrets `ANDROID_KEYSTORE_BASE64`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD` are all required: the job decodes the keystore, checks it opens with that password and holds that alias, and **fails** if any of it is missing or malformed. It never falls back to unsigned.
- Verifies the built APK with `apksigner` and fails if Gradle produced `app-release-unsigned.apk` — a release published unsigned in the past (v0.2.1) because this check did not exist.
- Attaches `lyrion-dashboard-vX.Y.Z.apk` to the release.

Note the ref subtlety: on a `release` event GitHub runs the workflow **as it exists at the tagged commit**. Recreating a release on an old tag replays that tag's workflows, not the current ones — so a fix to `android.yml` or `docker.yml` only takes effect for tags cut after it landed (or after the tag is moved).

`android.yml` also builds a **debug** APK on every push touching `android/**` (uploaded as a workflow artifact, not attached to a release).

## Publishing → the image (`.github/workflows/docker.yml`)

The same `release: published` event builds the container image and pushes it to `ghcr.io/werdeil/lyrion-dashboard` for `linux/amd64` and `linux/arm64`, tagged `X.Y.Z`, `X.Y` and `latest` — or `X.Y.Z` alone when the release is marked as a pre-release, so the moving tags stay on the last stable one. It re-checks the tag against `VERSION` first, the way `android.yml` checks it against `versionName`. Authentication is the job's own `GITHUB_TOKEN` with `packages: write` — there is no secret to provision.

**No released tag is ever rebuilt**, `latest` included: each is built once from the tagged commit, so a tag always resolves to the code of the release it names, and a base image fix ships with the next release rather than under a tag users already run. A merge to master publishes `dev` from unreleased code — never `latest`. The workflow is two jobs: `verify` builds `linux/amd64` into the runner's own daemon and smoke-tests it against `/health`, and only then does `publish` build the multi-arch image and push it, so a broken build never reaches a tag. A PR touching the `Dockerfile` or `requirements.txt` runs `verify` alone. `linux/arm64` is covered by the build succeeding, not by a run.

## Doing a release

1. Decide the new `X.Y.Z`.
2. Run the **Release** workflow (Actions → Release → Run workflow) with that version; tick prerelease if applicable.
3. Review the auto-generated notes on the resulting **draft** release, edit if needed, then **Publish**.
4. Confirm `android.yml` ran and the signed APK is attached, and that `docker.yml` pushed the image.

Prefer this path over hand-editing versions: doing it manually risks the three mirrors drifting, which the F-Droid coherence guard will reject at release time. If you must bump by hand (e.g. prepping a PR), change **all three** consistently and keep the `versionCode` packing formula.

## Checklist

- [ ] Version bumped in `VERSION` **and** `versionName`/`versionCode` in `android/app/build.gradle.kts`, with `versionCode = X*10000 + Y*100 + Z`.
- [ ] Tag `vX.Y.Z` matches `versionName` (else `android.yml` fails).
- [ ] Release cut via the workflow, reviewed as a draft, then published.
- [ ] Signed APK attached (signing secrets present) — verify on the release.
- [ ] Image pushed to GHCR for both architectures, with the `X.Y.Z`, `X.Y` and `latest` tags (`X.Y.Z` alone for a pre-release).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.