Repository navigation
ci(fdroid): publish builds as GitHub releases - #64
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The F-Droid repo workflow now also publishes each build as a GitHub release:
v<versionName>(e.g.v2.2.34), same MAJOR.MINOR.COUNT scheme as the F-Droid repo, APK attached aseLauncher-<versionName>.apk, notes carry the versionCode + matching F-Droid filename.v2.2..HEAD). Idempotent — skipped when the release already exists (weekly no-change runs, reruns).--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 become2.34) and crashing the versionCode arithmetic. Replaced with a strict two-component filter:Version bumps
Unchanged workflow: tag
v3.0(orv2.3) on master and push — next run builds3.0.0, monotonic versionCode, changelog covers the full diff since the last 2.2.x release.Validation
actionlintgreen.v2.2..HEAD, 27 entries, multiline bodies intact; empty range → notes without changelog section).gh api/jq pipeline tested live (read-only) — correct tag selection, raw tsv output.