diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16416795..bfa42434 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,7 @@ jobs: secrets: inherit release-documentscanner-ios: - uses: Akylas/app-tools/.github/workflows/release_android.yml@main + uses: Akylas/app-tools/.github/workflows/release_ios.yml@main if: github.event.inputs.ios == 'true' && github.event.inputs.documentscanner == 'true' with: flavor: documentscanner @@ -76,7 +76,7 @@ jobs: secrets: inherit release-cardwallet-ios: - uses: Akylas/app-tools/.github/workflows/release_android.yml@main + uses: Akylas/app-tools/.github/workflows/release_ios.yml@main if: github.event.inputs.ios == 'true' && github.event.inputs.cardwallet == 'true' with: flavor: cardwallet diff --git a/fastlane/Fastfile b/fastlane/Fastfile index ee7800f4..bec75881 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -199,8 +199,10 @@ lane :build_flavor do |params| # copy dist files to dist, already done on iOS if (platform == 'android') puts "copy dist files to #{dist_path}" - FileUtils.mkdir dist_path - FileUtils.cp_r(Dir.glob(File.expand_path(File.join(project_root_path, app_build_path, "android/app/build/outputs/apk/release/*.apk"))),dist_path ) + if (Dir.exist?(dist_path) == false) + FileUtils.mkdir dist_path + end + FileUtils.cp_r(Dir.glob(File.join(project_root_path, app_build_path, "android/app/build/outputs/apk/release/*.apk")),dist_path ) end if (ENV["GITHUB_ACTIONS"] != 'true')