Skip to content

Commit 5038e20

Browse files
committed
feat: enhance artifact naming for APK and IPA uploads with release name
Signed-off-by: bradly0cjw <57744542+bradly0cjw@users.noreply.github.com>
1 parent 7ade592 commit 5038e20

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/CI.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
- name: Upload APK Artifact
116116
uses: actions/upload-artifact@v4
117117
with:
118-
name: release-apk-${{ env.BUILD_TIMESTAMP }}
118+
name: release-apk-${{ env.RELEASE_NAME }}-${{ env.BUILD_TIMESTAMP }}
119119
path: build/app/outputs/flutter-apk/app-debug.apk
120120

121121
# - name: Create Pre-release and Upload Assets
@@ -155,7 +155,14 @@ jobs:
155155
- name: update build numbers
156156
run: |
157157
dart ./scripts/update_version.dart --ci
158-
# Updating pod files
158+
- name: Get App Version
159+
run: |
160+
VERSION=$(grep '^version:' pubspec.yaml | cut -d ' ' -f 2)
161+
BASE_VERSION=$(echo $VERSION | cut -d '+' -f 1)
162+
BUILD_NUMBER=$(echo $VERSION | cut -d '+' -f 2)
163+
echo "RELEASE_NAME=$BASE_VERSION ($BUILD_NUMBER)" >> $GITHUB_ENV
164+
165+
# Updating pod files
159166
- name: Pod file update
160167
run: |
161168
cd ios
@@ -228,5 +235,5 @@ jobs:
228235
if: env.SHOULD_SIGN_IOS == 'true'
229236
uses: actions/upload-artifact@v4
230237
with:
231-
name: release-ipa-${{ env.BUILD_TIMESTAMP }}
238+
name: release-ipa--${{ env.RELEASE_NAME }}-${{ env.BUILD_TIMESTAMP }}
232239
path: build/ios/ipa/*.ipa

0 commit comments

Comments
 (0)