split aab and apk artifacts to speed up downloading on the phone
Build Linux and Android / build (push) Successful in 2m18s

This commit is contained in:
feedc0de committed 2026-08-16 14:29:10 +02:00
1 parent 4d90526aa9
commit 53cf5f432a
2 files changed
+25 -9

No files matched your search

+15 -3
View File
@@ -130,10 +130,22 @@ jobs:
if-no-files-found: error
retention-days: 30
- name: Upload Android APK and AAB
- name: Upload Android APK
uses: https://code.brunner.ninja/actions/upload-artifact@v4
with:
name: evcharger-android
path: dist/android/
name: evcharger-apk
path: dist/android/*.apk
if-no-files-found: error
retention-days: 30
# APK files are ZIP containers already; recompressing wastes time.
compression-level: 0
- name: Upload Android App Bundle
uses: https://code.brunner.ninja/actions/upload-artifact@v4
with:
name: evcharger-aab
path: dist/android/*.aab
if-no-files-found: error
retention-days: 30
# AAB files are ZIP containers already; recompressing wastes time.
compression-level: 0
+10 -6
View File
@@ -148,21 +148,25 @@ because command-line arguments can leak through history and process listings.
## Artifacts and Android versions
Each successful workflow exposes two downloads in the Gitea Actions run:
Each successful workflow exposes three downloads in the Gitea Actions run:
```text
evcharger-linux/
evcharger-app
evcharger-android/
evcharger-apk/
evcharger-<version>-universal.apk
evcharger-aab/
evcharger-<version>.aab
SHA256SUMS
```
Artifacts are retained for 30 days. A signed universal APK is suitable for
direct download and sideloading; an unsigned one is only a validation artifact.
Upload the signed AAB to Google Play, which produces device-specific APKs.
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.
The Android `versionCode` defaults to the monotonically increasing Gitea Actions
run number. Tags become the `versionName` after an optional leading `v` is