Fix Sybil release paths
All checks were successful
TestFlight / Build and upload (push) Successful in 1m50s
All checks were successful
TestFlight / Build and upload (push) Successful in 1m50s
This commit is contained in:
@@ -14,7 +14,8 @@ platform :ios do
|
|||||||
build_number = ENV.fetch("GITHUB_RUN_NUMBER")
|
build_number = ENV.fetch("GITHUB_RUN_NUMBER")
|
||||||
UI.user_error!("GITHUB_RUN_NUMBER must be a positive integer") unless build_number.match?(/\A[1-9]\d*\z/)
|
UI.user_error!("GITHUB_RUN_NUMBER must be a positive integer") unless build_number.match?(/\A[1-9]\d*\z/)
|
||||||
|
|
||||||
project_spec = "Apps/Sybil/project.yml"
|
ios_dir = File.expand_path("..", __dir__)
|
||||||
|
project_spec = File.join(ios_dir, "Apps/Sybil/project.yml")
|
||||||
contents = File.read(project_spec)
|
contents = File.read(project_spec)
|
||||||
unless contents.match?(/^\s*MARKETING_VERSION:/) && contents.match?(/^\s*CURRENT_PROJECT_VERSION:/)
|
unless contents.match?(/^\s*MARKETING_VERSION:/) && contents.match?(/^\s*CURRENT_PROJECT_VERSION:/)
|
||||||
UI.user_error!("Could not find version settings in #{project_spec}")
|
UI.user_error!("Could not find version settings in #{project_spec}")
|
||||||
@@ -23,7 +24,7 @@ platform :ios do
|
|||||||
contents.sub!(/^(\s*CURRENT_PROJECT_VERSION:\s*).*/, "\\1#{build_number}")
|
contents.sub!(/^(\s*CURRENT_PROJECT_VERSION:\s*).*/, "\\1#{build_number}")
|
||||||
File.write(project_spec, contents)
|
File.write(project_spec, contents)
|
||||||
|
|
||||||
sh("xcodegen")
|
sh("xcodegen", "--spec", File.join(ios_dir, "project.yml"))
|
||||||
|
|
||||||
api_key = app_store_connect_api_key(
|
api_key = app_store_connect_api_key(
|
||||||
key_id: ENV.fetch("ASC_KEY_ID"),
|
key_id: ENV.fetch("ASC_KEY_ID"),
|
||||||
@@ -32,7 +33,10 @@ platform :ios do
|
|||||||
is_key_content_base64: true
|
is_key_content_base64: true
|
||||||
)
|
)
|
||||||
|
|
||||||
build_app(scheme: "Sybil")
|
build_app(
|
||||||
|
project: File.join(ios_dir, "Sybil.xcodeproj"),
|
||||||
|
scheme: "Sybil"
|
||||||
|
)
|
||||||
|
|
||||||
upload_to_testflight(
|
upload_to_testflight(
|
||||||
api_key: api_key,
|
api_key: api_key,
|
||||||
|
|||||||
Reference in New Issue
Block a user