Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 832 Bytes

File metadata and controls

26 lines (19 loc) · 832 Bytes

Android Keystore Setup

Generate a keystore (one time)

keytool -genkey -v -keystore android.keystore \
  -alias myalias -keyalg RSA -keysize 2048 -validity 10000 \
  -storepass YOUR_PASSWORD -keypass YOUR_PASSWORD \
  -dname "CN=MyAdventure, OU=Dev, O=MyAdventure, L=City, ST=State, C=US"

Add to GitHub Secrets

  1. Base64 encode the keystore:
base64 -w 0 android.keystore > android.keystore.base64
  1. In your GitHub repo, go to Settings → Secrets and variables → Actions and add:
    • ANDROID_KEYSTORE_BASE64 — contents of android.keystore.base64
    • ANDROID_SIGNING_PASSWORD — the password you used above

Local builds

For local Android builds without signing, the APK will be unsigned. For signed local builds, place android.keystore in the repo root (it's gitignored).