summaryrefslogtreecommitdiffstats
path: root/.ci/scripts/android/build.sh
diff options
context:
space:
mode:
Diffstat (limited to '.ci/scripts/android/build.sh')
-rwxr-xr-x.ci/scripts/android/build.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.ci/scripts/android/build.sh b/.ci/scripts/android/build.sh
index a5fd1ee18..d135af029 100755
--- a/.ci/scripts/android/build.sh
+++ b/.ci/scripts/android/build.sh
@@ -8,8 +8,17 @@ ccache -s
BUILD_FLAVOR=mainline
+if [ ! -z "${ANDROID_KEYSTORE_B64}" ]; then
+ export ANDROID_KEYSTORE_FILE="${GITHUB_WORKSPACE}/ks.jks"
+ base64 --decode <<< "${ANDROID_KEYSTORE_B64}" > "${ANDROID_KEYSTORE_FILE}"
+fi
+
cd src/android
chmod +x ./gradlew
./gradlew "assemble${BUILD_FLAVOR}Release" "bundle${BUILD_FLAVOR}Release"
ccache -s
+
+if [ ! -z "${ANDROID_KEYSTORE_B64}" ]; then
+ rm "${ANDROID_KEYSTORE_FILE}"
+fi