Skip to content

Commit 5646fc2

Browse files
committed
[chore] CI: update apk output file name and the CI command to locate the release builds
1 parent e65e222 commit 5646fc2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/tag_create_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262

6363
- name: Find APK file
6464
run: |
65-
apk_path=$(find ./app/build/outputs/apk/release -name "cidemo-release-*-*.apk" | head -n 1)
65+
apk_path=$(find ./app/build/outputs/apk/release -name "cidemo-*.apk" | head -n 1)
6666
echo "apk_path=$apk_path" >> $GITHUB_ENV
6767
6868
- name: Upload Release Asset APK
@@ -77,7 +77,7 @@ jobs:
7777

7878
- name: Find AAB file
7979
run: |
80-
aab_path=$(find ./app/build/outputs/bundle/release -name "cidemo-release-*-*.aab" | head -n 1)
80+
aab_path=$(find ./app/build/outputs/bundle/release -name "cidemo-*.aab" | head -n 1)
8181
echo "aab_path=$aab_path" >> $GITHUB_ENV
8282
8383
- name: Upload Release Asset AAB

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ android {
6969
.forEach { output ->
7070
val timestamp = SimpleDateFormat("yyyyMMdd-HHmmss").format(Date())
7171
val outputFileName =
72-
"cidemo-${variant.name}-${variant.versionName}-$timestamp.apk"
72+
"cidemo-${variant.versionName}-$timestamp-${variant.name}.apk"
7373
output.outputFileName = outputFileName
7474
}
7575
}

0 commit comments

Comments
 (0)