From 59693a74df5fd2363e2802ebe1b5ccbef3315dda Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Mon, 3 Jun 2024 22:31:55 +0200 Subject: [PATCH] chore(ci): signed debug builds Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com> --- .github/workflows/debug.yml | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 1044ced187..aaa7e918bc 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -32,6 +32,22 @@ jobs: - name: Build run: ./gradlew assembleArmv8Debug + - name: Sign APK + id: sign_app + uses: kevin-david/zipalign-sign-android-release@main + with: + releaseDirectory: app/build/outputs/apk/armv8/debug/ + signingKeyBase64: ${{ secrets.JAVA_KEYSTORE_DATA }} + alias: ${{ secrets.KEY_ALIAS }} + keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} + keyPassword: ${{ secrets.KEY_PASSWORD }} + + - name: Delete unsigned file + run: | + cd app/build/outputs/apk/armv8/debug/ + shopt -s extglob + rm !(*-signed*) + - name: Build Version run: ./gradlew getVersion @@ -79,6 +95,22 @@ jobs: - name: Build run: ./gradlew assembleArmv7Debug + - name: Sign APK + id: sign_app + uses: kevin-david/zipalign-sign-android-release@main + with: + releaseDirectory: app/build/outputs/apk/armv7/debug/ + signingKeyBase64: ${{ secrets.JAVA_KEYSTORE_DATA }} + alias: ${{ secrets.KEY_ALIAS }} + keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} + keyPassword: ${{ secrets.KEY_PASSWORD }} + + - name: Delete unsigned file + run: | + cd app/build/outputs/apk/armv7/debug/ + shopt -s extglob + rm !(*-signed*) + - name: Build Version run: ./gradlew getVersion @@ -126,6 +158,22 @@ jobs: - name: Build run: ./gradlew assembleAllDebug + - name: Sign APK + id: sign_app + uses: kevin-david/zipalign-sign-android-release@main + with: + releaseDirectory: app/build/outputs/apk/all/debug/ + signingKeyBase64: ${{ secrets.JAVA_KEYSTORE_DATA }} + alias: ${{ secrets.KEY_ALIAS }} + keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} + keyPassword: ${{ secrets.KEY_PASSWORD }} + + - name: Delete unsigned file + run: | + cd app/build/outputs/apk/all/debug/ + shopt -s extglob + rm !(*-signed*) + - name: Build Version run: ./gradlew getVersion