A repository template to create new Android Kotlin apps!
Setup. Code or ask to code. Do whatever you want.
To sign your APK, create a keystore. Keep it safe.
keytool -genkeypair -v -keystore release.jks -alias ${APP_NAME} -keyalg EC -groupname secp256r1 -sigalg SHA256withECDSA -validity 10000You can upload it to GitHub Actions as Secret ANDROID_KEYSTORE_BASE64 to generate Release APKs.
base64 -w 0 release.jks ; echoThen define ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_PASSWORD (default is the same), and ANDROID_KEY_ALIAS as configured.
To automatically publish releases to Google Play, configure a service account JSON key.
- In Google Play Console, go to Setup → API access and link a Google Cloud project.
- Create a service account with the Release manager (or Releases submitter) role.
- Download the JSON key file for that service account.
- Encode the contents and add them as a GitHub Actions secret named
GOOGLE_PLAY_JSON_KEY:
cat google-play-key.json | base64 -w 0 ; echoRequires also to update the release.yml Workflow and enable BUILD_AAB (disabled by default). The release workflow will automatically publish the AAB to the internal track after a successful build. The track can be changed in fastlane/Fastfile (publish lane, track option).