Configure signing for release builds
Some checks failed
Build Android APK / build (push) Failing after 1m36s

This commit is contained in:
2026-04-17 13:39:39 +02:00
parent 9b7f720564
commit 683287bfbb
2 changed files with 23 additions and 4 deletions

View File

@@ -15,12 +15,21 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup Keystore
run: |
echo "${{ secrets.ANDROIDKEYSTOREBASE64 }}" | base64 -d > helldivers.keystore
env:
ANDROIDKEYSTOREPATH: helldivers.keystore
ANDROIDKEYSTOREPASS: ${{ secrets.ANDROIDKEYSTOREPASS }}
ANDROIDKEYALIAS: ${{ secrets.ANDROIDKEYALIAS }}
ANDROIDKEYPASS: ${{ secrets.ANDROIDKEYPASS }}
- name: Build with Gradle
run: |
chmod +x ./gradlew

View File

@@ -15,8 +15,18 @@ android {
multiDexEnabled true
}
signingConfigs {
release {
storeFile file(System.getenv("ANDROIDKEYSTOREPATH") ?: "helldivers.keystore")
storePassword System.getenv("ANDROIDKEYSTOREPASS") ?: "HelldiversPorLaSuPerTierraYKevinTambien"
keyAlias System.getenv("ANDROIDKEYALIAS") ?: "helldivers"
keyPassword System.getenv("ANDROIDKEYPASS") ?: "HelldiversPorLaSuPerTierraYKevinTambien"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
multiDexEnabled true
@@ -27,14 +37,14 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
coreLibraryDesugaringEnabled true
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
languageVersion = JavaLanguageVersion.of(21)
}
}