Automating Flutter/Firebase APK build with Github Actions

This blog post will cover a way to publish APK files with GitHub Actions for Flutter mobile app with Firebase backend. Workflow example. GitHub Repository Secrets Flutter/Firebase apps have 3 files that hold sensitive information: services.json - Google Cloud credentials in JSON format, this is used by Firebase keystore.jks - Key used to sign the app key.properties - Key properties, such as key password, alias and it’s location All of the above will be encoded (not encrypted!) in BASE64 and save in GitHub Actions secrets. It must be encrypted for consistency, for example services.json contains a log of tabs and whitespaces that might be incorrectly stored in secrets. ...

September 2, 2023 · 3 min