Build installable APKs for forked pull requests
Build Linux and Android / build (push) Successful in 1m31s

This commit is contained in:
feedc0de committed 2026-11-23 16:50:34 +01:00
1 parent a42aa7bce8
commit c283221a11
3 files changed
+49 -25

No files matched your search

+10 -6
View File
@@ -102,11 +102,16 @@ robot needs write permission so the first run of a new revision can push it.
Credentials are written to a per-job temporary authentication file and removed
before the step exits.
Forked pull requests do not receive registry secrets. Their jobs reuse a locally
cached toolchain image, or build it from the Dockerfile when needed, without
publishing it to the registry.
## Signing secrets
Without a keystore, the workflow deliberately produces unsigned validation
packages. This allows pull requests to test Android compilation without release
credentials.
Without a release keystore, the workflow signs the APK with a temporary test
key so it can be installed. Each run generates a new key, so uninstall an older
test build before installing a new one. It cannot update an app signed with the
release key. The AAB remains unsigned and is only a validation artifact.
In **Settings > Actions > Secrets**, add these repository secrets:
@@ -171,9 +176,8 @@ evcharger-aab/
Artifacts are retained for 30 days. APK and AAB packages are separate downloads
so phone testing does not also download the Play bundle. Gitea Actions serves
artifacts as ZIP archives, but compression is disabled because APK and AAB files
are already ZIP containers. A signed universal APK is suitable for sideloading;
an unsigned one is only a validation artifact. Upload the signed AAB to Google
Play, which produces device-specific APKs.
are already ZIP containers. The universal APK is suitable for sideloading. Only
upload a release-signed AAB to Google Play, which produces device-specific APKs.
The Android `versionCode` defaults to the monotonically increasing Gitea Actions
run number. Tags become the `versionName` after an optional leading `v` is