mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
[Actions] Use Eclipse Temurin and gradle-build-action.
This commit is contained in:
parent
519d75d9d9
commit
cae41d17b6
7
.github/workflows/build-nightly-apk.yml
vendored
7
.github/workflows/build-nightly-apk.yml
vendored
@ -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
|
||||||
|
7
.github/workflows/build-release-aab-play.yml
vendored
7
.github/workflows/build-release-aab-play.yml
vendored
@ -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
|
||||||
|
7
.github/workflows/build-release-apk.yml
vendored
7
.github/workflows/build-release-apk.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user