From c2cea6c46a17446724075a4d4d01605b44ef5163 Mon Sep 17 00:00:00 2001 From: Nigel Breslaw Date: Sat, 13 Jan 2024 19:14:59 +0100 Subject: [PATCH] Test offical gradle action --- .github/workflows/deploy-android.yml | 29 +++++----------------------- 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/.github/workflows/deploy-android.yml b/.github/workflows/deploy-android.yml index 2a6fe20a2..139dce9ae 100644 --- a/.github/workflows/deploy-android.yml +++ b/.github/workflows/deploy-android.yml @@ -35,31 +35,12 @@ jobs: versionCode: ${{github.run_number}} versionName: '1.0.0' - # - name: Run Unit Test - # run: ./gradlew test - - -# cache Gradle dependencies and wrapper to reduce build time - - name: Cache Gradle Wrapper - uses: actions/cache@v3.3.3 - with: - path: ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - - - name: Cache Gradle Dependencies - uses: actions/cache@v3.3.3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle-caches- - - name: Make Gradlew Executable - run: cd android && chmod +x ./gradlew - - # Building and signing App - - name: Build Android App Bundle - run: cd android && ./gradlew bundleRelease + - name: Setup Gradle + uses: gradle/gradle-build-action@v2.11.1 + - name: Execute Gradle build + run: cd android && ./gradlew bundleRelease + - name: Sign ABB uses: r0adkll/sign-android-release@v1 # ID used to access action output