From 524ae0eb4eb21e41624e88a26b18f2ec37a4d2b9 Mon Sep 17 00:00:00 2001 From: Maila Rajanikanth Date: Mon, 17 Jul 2023 18:50:10 +0530 Subject: [PATCH] TP-35811 | generate playground apk (#124) --- .github/workflows/playground_apk.yml | 36 ++++++++++++++++++++++++++++ app/build.gradle | 10 +++++++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/playground_apk.yml diff --git a/.github/workflows/playground_apk.yml b/.github/workflows/playground_apk.yml new file mode 100644 index 0000000..7ec1a94 --- /dev/null +++ b/.github/workflows/playground_apk.yml @@ -0,0 +1,36 @@ +name: Publish AAR CI + +on: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + generate-playground-apk: + runs-on: [ default ] + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Log Build Metadata + run: | + echo "Commit SHA: ${{ github.sha }}" + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: 11 + distribution: adopt + - name: Setup Android SDK + uses: android-actions/setup-android@v2 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Assemble with Stacktrace + run: ./gradlew assembleRelease --stacktrace + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: playground.apk + path: | + app/build/outputs/apk/release/app-release.apk + retention-days: 10 diff --git a/app/build.gradle b/app/build.gradle index eb15707..4c3ccb0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,12 +19,20 @@ android { useSupportLibrary true } } - + signingConfigs { + release { + storeFile file('keystore/release.jks') + storePassword "releaseKey" + keyAlias "releaseKey" + keyPassword "releaseKey" + } + } buildTypes { release { debuggable false minifyEnabled true shrinkResources true + signingConfig signingConfigs.release proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } benchmark {