feat(android): auto-publish signed APK and AAR from CI #26
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_87d7245b"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Auto-publish a verified Android APK + SDK AAR whenever
mainchangesandroid/**. First automated version is v0.1.0 (zero tags → 0.1.0; afterwards patch+1).versionNamematches the tag;versionCodeismajor*10000 + minor*100 + patch(0.1.0 → 100).Signing (item 2 — preferred path)
Repo-owned PKCS12 keystore, not the debug key. CI reads Forgejo secrets
ANDROID_KEYSTORE_BASE64,ANDROID_KEYSTORE_PASSWORD,ANDROID_KEY_ALIAS,ANDROID_KEY_PASSWORD. Localscripts/build-android-local.shsources~/.android/onionwire-release.envso laptop and CI APKs share the cert.~/.android/onionwire-release.jks(mode 600) — back that file up. Nothing was committed.C7:18:9A:2A:C2:0B:DF:C0:7C:13:CE:55:CF:05:A6:48:64:37:33:D5:E9:90:F3:93:A0:F8:AC:CE:17:DF:6C:62onionwire. Valid until 2054.ONIONWIRE_REQUIRE_RELEASE_KEY=trueand fails closed if the secret is missing. Local without the env file still debug-signs (with a Gradle warning) so a laptop build installs.Trigger
.forgejo/workflows/android-release.ymlondocker-amd64:pushtomainwithpaths:android/**,scripts/build-android-local.sh, the workflow itselfworkflow_dispatchinputstag,dry_runworkflow_callinputstag,dry_run(standalone still works; callers shouldsecrets: inherit)concurrencygrouponionwire-android-release,cancel-in-progress: falsescripts/publish-release.sh(read-only). Create-or-join: wait ~60s for the core tag, never move an existing tag, retry publish.dry_run=truebuilds and checksums only.dry_run
Dispatching
dry_run=trueon this branch after open. Run URL + wall-clock +file/unzip -l/sha256sum -c/apksigner verify --print-certswill be edited in once the job finishes.Known runner constraint: amd64 dind memory limit is 4Gi and runner timeout is 1h. First Arti/NDK compile may OOM (137) or hit the hour. If it does, cheapest fix is raising
forgejo-runner-amd64dind memory (homek8s) — not a debug key fallback.Scope
Only allowed files. No keystore, no
local.properties, noPROTOCOL.md, no core release workflow edits.