This document explains how to build signed release artifacts (.apk and .aab) locally and in GitHub Actions.
This project should sign release builds with the existing production upload key (not a newly generated key).
- Upload key: used by local builds and CI to sign the AAB/APK before upload.
- App signing key: managed by Google Play App Signing and used by Google to sign distributed APKs.
The CI-generated ErikrafT-Drop-release.aab is an upload artifact for Google Play Console.
Never commit
.jks,.keystore,.p12, or password files to this repository.
Configure repository or environment secrets at: Settings → Secrets and variables → Actions → New repository secret
Required secrets:
| Secret | Value |
|---|---|
ANDROID_KEYSTORE_BASE64 |
Base64-encoded content of the release/upload keystore file (.jks). |
ANDROID_KEYSTORE_PASSWORD |
Keystore password. |
ANDROID_KEY_ALIAS |
Alias of the release/upload key inside the keystore. |
ANDROID_KEY_PASSWORD |
Password of the key alias. |
The workflow decodes ANDROID_KEYSTORE_BASE64 into a temporary file under ${{ runner.temp }} and deletes it at the end of the job.
- Linux/macOS:
base64 -w 0 my-release-key.jks
- PowerShell:
[Convert]::ToBase64String([IO.File]::ReadAllBytes("my-release-key.jks"))
Release builds require signing credentials. Use either environment variables or keystore.properties (already ignored by Git).
export KEYSTORE_PATH="/path/to/my-release-key.jks"
export KEYSTORE_PASSWORD="***"
export KEY_ALIAS="***"
export KEY_PASSWORD="***"
./gradlew clean assembleMobileRelease bundleMobileReleaseCreate /home/runner/work/Drop-Android/Drop-Android/keystore.properties:
storeFile=/path/to/my-release-key.jks
storePassword=***
keyAlias=***
keyPassword=***Then run:
./gradlew clean assembleMobileRelease bundleMobileReleaseBefore creating a Play Store release, update both values in /home/runner/work/Drop-Android/Drop-Android/app/build.gradle:
versionCodemust always increase for every Play update.versionNameshould match the intended release tag (for examplev9.0.8).
Never publish two Play releases with the same versionCode.
Workflow file: /home/runner/work/Drop-Android/Drop-Android/.github/workflows/release.yml
Triggers:
- push tags matching
v* - manual
workflow_dispatch
Pipeline steps:
- run
./gradlew test - decode temporary keystore from
ANDROID_KEYSTORE_BASE64 - run
./gradlew clean assembleMobileRelease bundleMobileRelease - verify APK/AAB existence and non-zero size
- verify APK signing with
apksigner - verify AAB signing with
jarsigner - upload:
erikraft-drop-apk→ErikrafT-Drop-release.apkerikraft-drop-aab→ErikrafT-Drop-release.aab
- when triggered by
v*tag, create a GitHub Release and attach:ErikrafT-Drop-vX.Y.Z.apkErikrafT-Drop-vX.Y.Z.aab
The signed release pipeline also runs real protocol checks before publishing release assets:
- FTP: authenticates against the existing Android
FtpServerServiceand performs upload/download/delete through a real Android emulator. - FTPS: exercises the same existing service using explicit TLS (
AUTH TLS) and verifies the transferred bytes. The CI server certificate is intentionally self-signed, and certificate validation is explicitly disabled (--insecure) only for this isolated test. - SFTP: uses a separate ephemeral OpenSSH SFTP server on the GitHub runner. This validates SFTP interoperability tooling without claiming that ErikrafT Drop implements SFTP.
FTP, FTPS and SFTP are distinct protocols; the SFTP smoke test must not be interpreted as Android app SFTP support.
Current Android configuration in app/build.gradle uses:
compileSdk 36targetSdkVersion 36
Keep this aligned with Google Play requirements before each release window.