Skip to content

ci(fdroid): publish builds as GitHub releases - #64

Merged
thypon merged 1 commit into
masterfrom
ci/fdroid-github-releases
Nov 17, 2026
Merged

thypon merged 1 commit into
masterfrom
ci/fdroid-github-releases

Conversation

@thypon

@thypon thypon commented Nov 17, 2026

Copy link
Copy Markdown
Owner

What

The F-Droid repo workflow now also publishes each build as a GitHub release:

  • Release per version: tag v<versionName> (e.g. v2.2.34), same MAJOR.MINOR.COUNT scheme as the F-Droid repo, APK attached as eLauncher-<versionName>.apk, notes carry the versionCode + matching F-Droid filename.
  • Changelog: release notes list every commit since the previous release (bold title, description indented below). First auto-release falls back to the base tag (v2.2..HEAD). Idempotent — skipped when the release already exists (weekly no-change runs, reruns).
  • Retention: auto-releases pruned to the 30 newest (release + tag via --cleanup-tag), mirroring the 30-APK retention in the F-Droid repo step. Stable base tags (v1.0, v2.2, ...) and their historic releases are never touched.

Why the version step changed

git describe --match 'v*.*' would pick up the new auto-release tags (v2.2.N) as the base tag on subsequent runs, breaking the MAJOR/MINOR split (MINOR would become 2.34) and crashing the versionCode arithmetic. Replaced with a strict two-component filter:

git tag --merged HEAD | grep -E '^v[0-9]+\.[0-9]+$' | sort -V | tail -n1

Version bumps

Unchanged workflow: tag v3.0 (or v2.3) on master and push — next run builds 3.0.0, monotonic versionCode, changelog covers the full diff since the last 2.2.x release.

Validation

  • actionlint green.
  • Changelog awk pipeline tested against real history (v2.2..HEAD, 27 entries, multiline bodies intact; empty range → notes without changelog section).
  • Prune gh api/jq pipeline tested live (read-only) — correct tag selection, raw tsv output.
  • Actual workflow run requires Actions secrets (keystores) — only verifiable after merge.

Releases tab is the documented manual-download channel but only the
F-Droid repo was automated. Each run now publishes the same build as
a release with the same version scheme (tag vX.Y.Z, APK asset) and a
changelog of commit titles + descriptions since the previous release.
Old auto-releases are pruned to the 30 newest, mirroring the F-Droid
repo APK retention; stable base tags are untouched.

Version computation switches from git describe to a strict vX.Y
filter: auto-release tags share the v*.* prefix and would otherwise
be picked as the base tag, breaking the MAJOR/MINOR split.
@thypon
thypon merged commit e5bf53d into master Nov 17, 2026
5 checks passed
@thypon
thypon deleted the ci/fdroid-github-releases branch November 17, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant