From f0f650d678f4512e8a60ea3da6a78e391f4622f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Font=C3=A1n?= Date: Mon, 29 Jul 2024 12:45:47 +0200 Subject: [PATCH] chore: Updated to JDK 21 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upload APK as artifact after build. Signed-off-by: Your Name Signed-off-by: Gabriel Fontán --- .github/workflows/android_ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/android_ci.yml b/.github/workflows/android_ci.yml index 5aa9aae..8a90547 100644 --- a/.github/workflows/android_ci.yml +++ b/.github/workflows/android_ci.yml @@ -13,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: set up JDK 17 + - name: set up JDK 21 uses: actions/setup-java@v3 with: - java-version: '17' + java-version: '21' distribution: 'temurin' cache: gradle @@ -29,7 +29,15 @@ jobs: echo "CLIENT_SECRET=${{ secrets.CLIENT_SECRET }}" >> local.properties - uses: gradle/actions/setup-gradle@v3 + - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Build with Gradle - run: ./gradlew assembleFoss \ No newline at end of file + run: ./gradlew assembleFoss + + - name: Upload APK + uses: actions/upload-artifact@v3 + with: + name: Metadator-${{ github.sha }}.apk + path: app/build/outputs/apk/foss/*.apk