From cae41d17b6971fcf5fd05b01ff60704adadf0b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Sat, 30 Oct 2021 22:02:59 +0200 Subject: [PATCH] [Actions] Use Eclipse Temurin and gradle-build-action. --- .github/workflows/build-nightly-apk.yml | 7 ++++--- .github/workflows/build-release-aab-play.yml | 7 ++++--- .github/workflows/build-release-apk.yml | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-nightly-apk.yml b/.github/workflows/build-nightly-apk.yml index c64dba12..0951149e 100644 --- a/.github/workflows/build-nightly-apk.yml +++ b/.github/workflows/build-nightly-apk.yml @@ -54,9 +54,8 @@ jobs: - name: Setup JDK 11 uses: actions/setup-java@v2 with: - distribution: 'zulu' + distribution: 'temurin' java-version: '11' - cache: 'gradle' - name: Setup Android SDK uses: android-actions/setup-android@v2 - name: Clean build artifacts @@ -65,7 +64,9 @@ jobs: rm -rf app/build/outputs/apk/* rm -rf app/build/outputs/bundle/* - name: Assemble official release with Gradle - run: ./gradlew assembleOfficialRelease + uses: gradle/gradle-build-action@v2 + with: + arguments: assembleOfficialRelease sign: name: Sign APK runs-on: self-hosted diff --git a/.github/workflows/build-release-aab-play.yml b/.github/workflows/build-release-aab-play.yml index 5f3026e6..95fec5cb 100644 --- a/.github/workflows/build-release-aab-play.yml +++ b/.github/workflows/build-release-aab-play.yml @@ -46,9 +46,8 @@ jobs: - name: Setup JDK 11 uses: actions/setup-java@v2 with: - distribution: 'zulu' + distribution: 'temurin' java-version: '11' - cache: 'gradle' - name: Setup Android SDK uses: android-actions/setup-android@v2 - name: Clean build artifacts @@ -57,7 +56,9 @@ jobs: rm -rf app/build/outputs/apk/* rm -rf app/build/outputs/bundle/* - name: Bundle play release with Gradle - run: ./gradlew bundlePlayRelease + uses: gradle/gradle-build-action@v2 + with: + arguments: bundlePlayRelease sign: name: Sign App Bundle runs-on: self-hosted diff --git a/.github/workflows/build-release-apk.yml b/.github/workflows/build-release-apk.yml index 4816ee73..5ca055b9 100644 --- a/.github/workflows/build-release-apk.yml +++ b/.github/workflows/build-release-apk.yml @@ -46,9 +46,8 @@ jobs: - name: Setup JDK 11 uses: actions/setup-java@v2 with: - distribution: 'zulu' + distribution: 'temurin' java-version: '11' - cache: 'gradle' - name: Setup Android SDK uses: android-actions/setup-android@v2 - name: Clean build artifacts @@ -57,7 +56,9 @@ jobs: rm -rf app/build/outputs/apk/* rm -rf app/build/outputs/bundle/* - name: Assemble official release with Gradle - run: ./gradlew assembleOfficialRelease + uses: gradle/gradle-build-action@v2 + with: + arguments: assembleOfficialRelease sign: name: Sign APK runs-on: self-hosted