From c0da816952dac10d87f936fc8f78b99a6bca50d6 Mon Sep 17 00:00:00 2001 From: deniscerri <64997243+deniscerri@users.noreply.github.com> Date: Sat, 15 Apr 2023 15:40:34 +0200 Subject: [PATCH] Update android.yml --- .github/workflows/android.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index f648e072..52955024 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,8 +1,6 @@ name: Android CI on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] @@ -12,8 +10,20 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + + - uses: gradle/gradle-build-action@v2 + with: + gradle-version: 7.5 - name: Create Properties File run: touch local.properties - - name: Build Android App - uses: sparkfabrik/android-build-action@v1.3.4 - + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build