From b8df76e3fb2ca0f60fbfe16fd5e6016be724172f Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 5 Apr 2024 02:57:35 +0200 Subject: [PATCH] ci: Release Huawei versions Huawei needs special settings in GmsCore toggled to allow sign-in. --- .github/workflows/release.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 177ccf0236..cfc3ad8649 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,19 +24,33 @@ jobs: java-version: "17" - name: Build - run: ./gradlew --no-daemon :play-services-core:assembleMapboxDefault + run: ./gradlew --no-daemon :play-services-core:assembleMapboxDefault :play-services-core:assembleMapboxHuawei + + - name: Move + run: > + mv + play-services-core/build/outputs/apk/mapboxDefault/release/*.apk + play-services-core/build/outputs/apk/mapboxHuawei/release/*.apk + play-services-core/build/outputs/apk/ - name: Sign id: sign_apk uses: ilharp/sign-android-release@v1 with: - releaseDir: play-services-core/build/outputs/apk/mapboxDefault/release + releaseDir: play-services-core/build/outputs/apk signingKey: ${{ secrets.SIGNING_KEYSTORE }} keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }} keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }} keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} + - name: Split + uses: jungwinter/split@v2 + id: signed_files + with: + msg: ${{ steps.sign_apk.outputs.signedFiles }} + separator: ':' + - name: Release uses: ncipollo/release-action@v1 with: - artifacts: ${{steps.sign_apk.outputs.signedFile}} + artifacts: "${{ steps.signed_files.outputs._0 }},${{ steps.signed_files.outputs._1 }}"