3 Commits
Author SHA1 Message Date
julian 41505677d5 ci: fix key properties filename
Build and deploy the latest docker container / deploy (push) Successful in 1m13s
Build and release the latest android apk / rolling-release-apk (push) Successful in 5m25s
2026-07-09 18:45:35 +02:00
julian 276dd6c97f ci: add app signing
Build and deploy the latest docker container / deploy (push) Successful in 33m33s
Build and release the latest android apk / rolling-release-apk (push) Failing after 2m30s
2026-07-09 09:11:56 +02:00
julian 479b23690c android: setup app signing 2026-07-09 09:11:45 +02:00
3 changed files with 49 additions and 3 deletions
@@ -11,6 +11,20 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
- name: Decode keystore
run: echo "$KEYSTORE_BASE64" | base64 --decode > android/app/keystore.jks
env:
KEYSTORE_BASE64: ${{ secrets.FRAJUL_KEYSTORE_BASE64 }}
- name: Create keystore.properties
run: |
cat <<EOF > android/key.properties
storeFile=keystore.jks
storePassword=${{ secrets.FRAJUL_KEYSTORE_PASSWORD }}
keyAlias=${{ secrets.FRAJUL_KEYSTORE_ALIAS }}
keyPassword=${{ secrets.FRAJUL_KEYSTORE_KEY_PASSWORD }}
EOF
- name: Build apk
run: devenv shell build-android
@@ -11,6 +11,22 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
- name: Decode keystore
run: echo "$KEYSTORE_BASE64" | base64 --decode > android/app/keystore.jks
env:
KEYSTORE_BASE64: ${{ secrets.FRAJUL_KEYSTORE_BASE64 }}
- name: Create keystore.properties
run: |
cat <<EOF > android/key.properties
storeFile=keystore.jks
storePassword=${{ secrets.FRAJUL_KEYSTORE_PASSWORD }}
keyAlias=${{ secrets.FRAJUL_KEYSTORE_ALIAS }}
keyPassword=${{ secrets.FRAJUL_KEYSTORE_KEY_PASSWORD }}
EOF
- name: Build apk
run: devenv shell build-android
- name: Build apk
run: devenv shell build-android
+19 -3
View File
@@ -1,3 +1,6 @@
import java.util.Properties
import java.io.FileInputStream
plugins {
id("com.android.application")
id("kotlin-android")
@@ -5,6 +8,12 @@ plugins {
id("dev.flutter.flutter-gradle-plugin")
}
val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
android {
namespace = "com.example.sheetless"
compileSdk = flutter.compileSdkVersion
@@ -30,11 +39,18 @@ android {
versionName = flutter.versionName
}
signingConfigs {
create("release") {
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
storePassword = keystoreProperties["storePassword"] as String
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
signingConfig = signingConfigs.getByName("release")
}
}
}