From f0a9566d79f2103aa5ec4abe45d26b7f5fce1f63 Mon Sep 17 00:00:00 2001 From: appvpluss Date: Fri, 7 Feb 2025 15:35:11 +0330 Subject: [PATCH] Update Generated APK AAB (Upload - Create Artifact To Github Action & Release).yml --- ...Create Artifact To Github Action & Release).yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Generated APK AAB (Upload - Create Artifact To Github Action & Release).yml b/.github/workflows/Generated APK AAB (Upload - Create Artifact To Github Action & Release).yml index e162f6b..ad6bda1 100644 --- a/.github/workflows/Generated APK AAB (Upload - Create Artifact To Github Action & Release).yml +++ b/.github/workflows/Generated APK AAB (Upload - Create Artifact To Github Action & Release).yml @@ -64,11 +64,23 @@ jobs: run: ./gradlew assembleDebug - name: Build APK Release - run: ./gradlew assemble + run: ./gradlew assembleRelease - name: Build AAB Release run: ./gradlew ${{ env.main_project_module }}:bundleRelease + # امضای APK Release + - name: Sign APK Release + run: | + echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > keystore.jks + apksigner sign --ks keystore.jks --ks-pass pass:${{ secrets.SIGNING_STORE_PASSWORD }} \ + --key-pass pass:${{ secrets.SIGNING_KEY_PASSWORD }} --ks-key-alias ${{ secrets.SIGNING_KEY_ALIAS }} \ + --out ${{ env.main_project_module }}/build/outputs/apk/release/app-release-signed.apk ${{ env.main_project_module }}/build/outputs/apk/release/app-release-unsigned.apk + + # Verify the APK signature + - name: Verify APK Signature + run: apksigner verify ${{ env.main_project_module }}/build/outputs/apk/release/app-release-signed.apk + # آپلود خروجی‌ها به عنوان Artifact برای دانلود از GitHub Actions - name: Upload APK Debug as Artifact uses: actions/upload-artifact@v4