From af3a57ef74727a23f1c666059cf849f968b61d08 Mon Sep 17 00:00:00 2001 From: tuancoltech Date: Wed, 7 Feb 2024 08:42:04 +0700 Subject: [PATCH] * [feature] Setup sample app deployment for testing --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ sample/build.gradle.kts | 10 ++++++++++ 2 files changed, 38 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8338f47..061a92f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,8 @@ on: jobs: build: + if: ${{ ! startsWith(github.actor, 'dependabot') }} + environment: Development runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -25,3 +27,29 @@ jobs: - name: Build components run: ./gradlew assembleRelease + + - name: Decrypt the keystore for signing + run: | + echo "${{ secrets.KEYSTORE_ENCRYPTED }}" > keystore.asc + gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks + + - name: Build release sample APK + run: ./gradlew sample:assembleRelease + + - name: Upload release arm64-v8a APK + uses: actions/upload-artifact@v3 + with: + name: release-arm64-v8a-apk + path: ./app/build/outputs/apk/release/app-arm64-v8a-release.apk + + - name: Upload release armeabi-v7a APK + uses: actions/upload-artifact@v3 + with: + name: release-armeabi-v7a-apk + path: ./app/build/outputs/apk/release/app-armeabi-v7a-release.apk + + - name: Upload release universal APK + uses: actions/upload-artifact@v3 + with: + name: release-universal-apk + path: ./app/build/outputs/apk/release/app-universal-release.apk diff --git a/sample/build.gradle.kts b/sample/build.gradle.kts index 7242147..89bd415 100644 --- a/sample/build.gradle.kts +++ b/sample/build.gradle.kts @@ -17,9 +17,19 @@ android { testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } + signingConfigs { + create("release") { + storeFile = project.rootProject.file("keystore.jks") + storePassword = "sw0rdf1sh" + keyAlias = "ark-builders-test" + keyPassword = "rybamech" + } + } + buildTypes { release { isMinifyEnabled = false + signingConfig = signingConfigs.getByName("release") proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"