[Actions] Use Eclipse Temurin and gradle-build-action.

This commit is contained in:
Kuba Szczodrzyński 2021-10-30 22:02:59 +02:00
parent 519d75d9d9
commit cae41d17b6
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB
3 changed files with 12 additions and 9 deletions

View File

@ -54,9 +54,8 @@ jobs:
- name: Setup JDK 11 - name: Setup JDK 11
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
distribution: 'zulu' distribution: 'temurin'
java-version: '11' java-version: '11'
cache: 'gradle'
- name: Setup Android SDK - name: Setup Android SDK
uses: android-actions/setup-android@v2 uses: android-actions/setup-android@v2
- name: Clean build artifacts - name: Clean build artifacts
@ -65,7 +64,9 @@ jobs:
rm -rf app/build/outputs/apk/* rm -rf app/build/outputs/apk/*
rm -rf app/build/outputs/bundle/* rm -rf app/build/outputs/bundle/*
- name: Assemble official release with Gradle - name: Assemble official release with Gradle
run: ./gradlew assembleOfficialRelease uses: gradle/gradle-build-action@v2
with:
arguments: assembleOfficialRelease
sign: sign:
name: Sign APK name: Sign APK
runs-on: self-hosted runs-on: self-hosted

View File

@ -46,9 +46,8 @@ jobs:
- name: Setup JDK 11 - name: Setup JDK 11
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
distribution: 'zulu' distribution: 'temurin'
java-version: '11' java-version: '11'
cache: 'gradle'
- name: Setup Android SDK - name: Setup Android SDK
uses: android-actions/setup-android@v2 uses: android-actions/setup-android@v2
- name: Clean build artifacts - name: Clean build artifacts
@ -57,7 +56,9 @@ jobs:
rm -rf app/build/outputs/apk/* rm -rf app/build/outputs/apk/*
rm -rf app/build/outputs/bundle/* rm -rf app/build/outputs/bundle/*
- name: Bundle play release with Gradle - name: Bundle play release with Gradle
run: ./gradlew bundlePlayRelease uses: gradle/gradle-build-action@v2
with:
arguments: bundlePlayRelease
sign: sign:
name: Sign App Bundle name: Sign App Bundle
runs-on: self-hosted runs-on: self-hosted

View File

@ -46,9 +46,8 @@ jobs:
- name: Setup JDK 11 - name: Setup JDK 11
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
distribution: 'zulu' distribution: 'temurin'
java-version: '11' java-version: '11'
cache: 'gradle'
- name: Setup Android SDK - name: Setup Android SDK
uses: android-actions/setup-android@v2 uses: android-actions/setup-android@v2
- name: Clean build artifacts - name: Clean build artifacts
@ -57,7 +56,9 @@ jobs:
rm -rf app/build/outputs/apk/* rm -rf app/build/outputs/apk/*
rm -rf app/build/outputs/bundle/* rm -rf app/build/outputs/bundle/*
- name: Assemble official release with Gradle - name: Assemble official release with Gradle
run: ./gradlew assembleOfficialRelease uses: gradle/gradle-build-action@v2
with:
arguments: assembleOfficialRelease
sign: sign:
name: Sign APK name: Sign APK
runs-on: self-hosted runs-on: self-hosted