Compare commits

...

2 Commits

Author SHA1 Message Date
f2857bdece
add Gradle caching + rename artifacts
Some checks failed
Generate debug APK / build (push) Has been cancelled
2024-05-12 19:19:14 +02:00
3c1497394c
fix: artifacts (second try) 2024-05-12 19:08:38 +02:00
2 changed files with 20 additions and 4 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
@ -47,9 +55,9 @@ jobs:
run: ./gradlew assembleRelease
- name: Upload artifacts
uses: christopherhx/gitea-upload-artifact@v4
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
@ -47,8 +55,8 @@ jobs:
run: ./gradlew assembleDebug
- name: Upload artifacts
uses: christopherhx/gitea-upload-artifact@v4
uses: actions/upload-artifact@v3 # not v4 because of GHES
with:
name: apks
name: wulkanowy_mod_debug.apk
path: |
app/build/outputs/**/*-debug.apk