4 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
julian 52eb2fbab1 pubspec: add build number to distinguish apps in fdroid
Build and deploy the latest docker container / deploy (push) Successful in 1m11s
Build and release the latest android apk / rolling-release-apk (push) Failing after 6m3s
Build and release a versioned android apk / release-apk (push) Successful in 5m10s
2026-07-04 11:45:10 +02:00
4 changed files with 50 additions and 4 deletions
@@ -11,6 +11,20 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 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 - name: Build apk
run: devenv shell build-android run: devenv shell build-android
@@ -11,6 +11,22 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 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 - name: Build apk
run: devenv shell build-android run: devenv shell build-android
+19 -3
View File
@@ -1,3 +1,6 @@
import java.util.Properties
import java.io.FileInputStream
plugins { plugins {
id("com.android.application") id("com.android.application")
id("kotlin-android") id("kotlin-android")
@@ -5,6 +8,12 @@ plugins {
id("dev.flutter.flutter-gradle-plugin") id("dev.flutter.flutter-gradle-plugin")
} }
val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
android { android {
namespace = "com.example.sheetless" namespace = "com.example.sheetless"
compileSdk = flutter.compileSdkVersion compileSdk = flutter.compileSdkVersion
@@ -30,11 +39,18 @@ android {
versionName = flutter.versionName 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 { buildTypes {
release { release {
// TODO: Add your own signing config for the release build. signingConfig = signingConfigs.getByName("release")
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
} }
} }
} }
+1 -1
View File
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 0.2.1 version: 0.2.1+2
environment: environment:
sdk: ^3.0.0 sdk: ^3.0.0