From 4f87321e2cf0b54de44c755deb7116cc7e6dd520 Mon Sep 17 00:00:00 2001 From: Fabian Zobrist Date: Wed, 28 Jun 2023 17:25:48 +0200 Subject: [PATCH] Use android build box iamge. --- .gitea/workflows/buildAndroid.yaml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/buildAndroid.yaml b/.gitea/workflows/buildAndroid.yaml index a40e301..8b98d59 100644 --- a/.gitea/workflows/buildAndroid.yaml +++ b/.gitea/workflows/buildAndroid.yaml @@ -2,23 +2,16 @@ name: Build Android on: [pull_request, push] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-latest-android steps: - name: Checkout the code uses: actions/checkout@v2 - - name: set up JDK - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - cache: gradle - - name: Prepare signing run: | touch keystore.properties - echo "storePassword=$STOREPASSWORD" >> keystore.properties - echo "keyPassword=$KEYPASSWORD" >> keystore.properties + echo "storePassword=${{ secrets.STOREPASSWORD }}" >> keystore.properties + echo "keyPassword=${{ secrets.KEYPASSWORD }}" >> keystore.properties echo "keyAlias=key0" >> keystore.properties echo "storeFile=../AndroidKey" >> keystore.properties @@ -28,5 +21,11 @@ jobs: let timestamp=$(date +%s)/10 echo "versionCode=$timestamp" >> version.properties - - name: Build the app - run: ./gradlew build \ No newline at end of file + - name: Test the app + run: ./gradlew test + + - name: Build apk + run: ./gradlew assembleRelease + + - name: Build abb + run: ./gradlew bundleRelease \ No newline at end of file