From c9c56594d92b08443df4eb5c05b8f4cee21fdb41 Mon Sep 17 00:00:00 2001 From: Rajan Maurya Date: Thu, 5 Dec 2024 20:05:04 -0500 Subject: [PATCH] Update build_and_publish_on_platforms.yaml --- .../workflows/build_and_publish_on_platforms.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_and_publish_on_platforms.yaml b/.github/workflows/build_and_publish_on_platforms.yaml index 464db5e8a..a01051b3c 100644 --- a/.github/workflows/build_and_publish_on_platforms.yaml +++ b/.github/workflows/build_and_publish_on_platforms.yaml @@ -247,14 +247,14 @@ jobs: # Specifies the name of the changelog artifact to download. name: beta-changelog - # Organize files for Firebase deployment + # Executes shell commands. + # Creates the necessary directory structure for the APK if it doesn't exist. + # Moves the downloaded release APK to the designated build output directory. + # Moves the downloaded changelog file to the build output directory. - name: Move APK to build directory - run: | #Executes shell commands. - # Creates the necessary directory structure for the APK if it doesn't exist. + run: | mkdir -p ./mifospay-android/build/outputs/apk/prod/release/ - # Moves the downloaded release APK to the designated build output directory. mv ./android-artifacts/prod/release/mifospay-android-prod-release.apk ./mifospay-android/build/outputs/apk/prod/release/ - # Moves the downloaded changelog file to the build output directory. mv ./changelogBeta ./mifospay-android/build/outputs/ # Deploy to Firebase App Distribution @@ -478,16 +478,15 @@ jobs: with: name: beta-changelog - # Organize files for Firebase deployment # Sets the name of the step. Although the name mentions "APK," it's actually moving the iOS IPA file and the changelog. - name: Move APK to build directory # Moves any IPA file in the current directory to the mifospay-ios directory. # This is likely done to place the IPA file in the expected location for the Fastlane deployment lane. - run: | - mv *.ipa ./mifospay-ios/ # Moves the changelogBeta file (presumably the downloaded changelog) to the mifospay-android/build/outputs/ directory. # This might be a mistake, as it's placing the iOS changelog in the Android build output directory. # It's possible this line should be adjusted to place the changelog in a more appropriate location for the iOS deployment. + run: | + mv *.ipa ./mifospay-ios/ mv changelogBeta ./mifospay-android/build/outputs/