add Gradle caching + rename artifacts
Some checks failed
Generate debug APK / build (push) Has been cancelled

This commit is contained in:
Franek 2024-05-12 19:19:14 +02:00
parent 3c1497394c
commit f2857bdece
No known key found for this signature in database
GPG Key ID: 0329F871B2079351
2 changed files with 18 additions and 2 deletions

View File

@ -33,6 +33,14 @@ jobs:
java-version: '17'
cache: 'gradle'
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}
- name: Get app version
id: get_version
run: echo "VERSION_NAME=$(grep -m1 "versionName" app/build.gradle | awk '{print $2}' | tr -d \''"\')" >> $GITHUB_ENV
@ -49,7 +57,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3 # not v4 because of GHES
with:
name: apks
name: wulkanowy_mod_release.apk
path: |
app/build/outputs/**/*-release-unsigned.apk

View File

@ -33,6 +33,14 @@ jobs:
java-version: '17'
cache: 'gradle'
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}
- name: Get app version
id: get_version
run: echo "VERSION_NAME=$(grep -m1 "versionName" app/build.gradle | awk '{print $2}' | tr -d \''"\')" >> $GITHUB_ENV
@ -49,6 +57,6 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3 # not v4 because of GHES
with:
name: apks
name: wulkanowy_mod_debug.apk
path: |
app/build/outputs/**/*-debug.apk