forked from github/wulkanowy-mirror
add Gradle caching + rename artifacts
Some checks failed
Generate debug APK / build (push) Has been cancelled
Some checks failed
Generate debug APK / build (push) Has been cancelled
This commit is contained in:
parent
3c1497394c
commit
f2857bdece
@ -33,6 +33,14 @@ jobs:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
cache: 'gradle'
|
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
|
- name: Get app version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo "VERSION_NAME=$(grep -m1 "versionName" app/build.gradle | awk '{print $2}' | tr -d \''"\')" >> $GITHUB_ENV
|
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
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3 # not v4 because of GHES
|
uses: actions/upload-artifact@v3 # not v4 because of GHES
|
||||||
with:
|
with:
|
||||||
name: apks
|
name: wulkanowy_mod_release.apk
|
||||||
path: |
|
path: |
|
||||||
app/build/outputs/**/*-release-unsigned.apk
|
app/build/outputs/**/*-release-unsigned.apk
|
||||||
|
|
||||||
|
@ -33,6 +33,14 @@ jobs:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
cache: 'gradle'
|
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
|
- name: Get app version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo "VERSION_NAME=$(grep -m1 "versionName" app/build.gradle | awk '{print $2}' | tr -d \''"\')" >> $GITHUB_ENV
|
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
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3 # not v4 because of GHES
|
uses: actions/upload-artifact@v3 # not v4 because of GHES
|
||||||
with:
|
with:
|
||||||
name: apks
|
name: wulkanowy_mod_debug.apk
|
||||||
path: |
|
path: |
|
||||||
app/build/outputs/**/*-debug.apk
|
app/build/outputs/**/*-debug.apk
|
Loading…
Reference in New Issue
Block a user