Skip to content

Commit

Permalink
* [feature] Setup sample app deployment for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tuancoltech committed Feb 12, 2024
1 parent f2d25af commit fac7db3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
build:
if: ${{ ! startsWith(github.actor, 'dependabot') }}
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -22,6 +24,36 @@ jobs:

- name: Validate Gradle wrapper
uses: gradle/[email protected]


- 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 components
run: ./gradlew assembleRelease

- name: Build release sample APK
run: ./gradlew sample:assembleRelease

- name: Check output
run: ls ./sample/build/outputs/apk/release/

- name: Upload release arm64-v8a APK
uses: actions/upload-artifact@v3
with:
name: release-arm64-v8a-apk
path: ./sample/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: ./sample/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: ./sample/build/outputs/apk/release/app-universal-release.apk
10 changes: 10 additions & 0 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fac7db3

Please sign in to comment.