mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -05:00
[INJI-652] - upload ios IPA to github actions (#1112)
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com> Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
This commit is contained in:
4
.github/workflows/internal-build.yml
vendored
4
.github/workflows/internal-build.yml
vendored
@@ -146,8 +146,8 @@ jobs:
|
||||
SERVICE_LOCATION: '.'
|
||||
IOS_SERVICE_LOCATION: 'ios'
|
||||
SCRIPT_NAME: "fastlane beta"
|
||||
IOS_ARTIFACT_NAME: "Inji"
|
||||
IOS_ARTIFACT_PATH: "ios/fastlane/Inji_app_file/Products/Applications/"
|
||||
IOS_ARTIFACT_NAME: "ios-artifacts"
|
||||
IOS_ARTIFACT_PATH: "ios/fastlane/Inji_artifacts/"
|
||||
secrets:
|
||||
APP_STORE_CONNECT_TEAM_ID: '${{ secrets.APP_STORE_CONNECT_TEAM_ID }}'
|
||||
DEVELOPER_APP_ID: '${{ secrets.IOS_INJI_DEVELOPER_APP_ID }}'
|
||||
|
||||
@@ -138,6 +138,10 @@ platform :ios do
|
||||
display_name: "#{generate_app_name}"
|
||||
)
|
||||
|
||||
# folder to copy artifacts to upload to github actions
|
||||
output_directory = "./Inji_artifacts"
|
||||
sh("mkdir -p '#{output_directory}'")
|
||||
|
||||
match(
|
||||
type: 'appstore',
|
||||
app_identifier: "#{generate_app_bundle_id}",
|
||||
@@ -149,6 +153,7 @@ platform :ios do
|
||||
)
|
||||
|
||||
profile_mapping = Actions.lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING]
|
||||
|
||||
gym(
|
||||
configuration: "Release",
|
||||
workspace: "Inji.xcworkspace",
|
||||
@@ -162,6 +167,9 @@ platform :ios do
|
||||
}
|
||||
)
|
||||
|
||||
# copy IPA to the folder
|
||||
sh("cp -R '../#{generate_app_name}.ipa' '#{output_directory}'")
|
||||
|
||||
pilot(
|
||||
app_identifier: "#{generate_app_bundle_id}",
|
||||
api_key: api_key,
|
||||
@@ -180,9 +188,6 @@ platform :ios do
|
||||
|
||||
delete_temp_keychain(keychain_name)
|
||||
|
||||
custom_output_directory = "./Inji_app_file"
|
||||
sh("mkdir -p '#{custom_output_directory}'")
|
||||
|
||||
archive_path = gym(
|
||||
skip_package_ipa: true,
|
||||
destination: "generic/platform=iOS Simulator",
|
||||
@@ -190,10 +195,10 @@ platform :ios do
|
||||
build_path: "./build",
|
||||
)
|
||||
|
||||
|
||||
# find and copy App file to the folder
|
||||
find_command = "find '../build/' -type d -name 'Products'"
|
||||
app_path = sh(find_command, log: false).strip
|
||||
sh("cp -R '#{app_path}' '#{custom_output_directory}'")
|
||||
sh("cp -R '#{app_path}' '#{output_directory}'")
|
||||
|
||||
slack(
|
||||
message: "#{generate_app_name} #{version} (#{current_build_number}) is uploaded to testflight.",
|
||||
@@ -212,5 +217,6 @@ platform :ios do
|
||||
configuration: "Release",
|
||||
build_path: "./build",
|
||||
)
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user