Skip to content

Commit 19cc226

Browse files
author
impri2
committed
feat: add debug release fastlane line
1 parent e02ace4 commit 19cc226

2 files changed

Lines changed: 36 additions & 3 deletions

File tree

.github/workflows/cd.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,7 @@ jobs:
8181
- name: Upload prod app to TestFlight
8282
if: ${{ steps.regex.outputs.group1 == 'testflight' && steps.regex.outputs.group5 == 'release' }}
8383
run: |
84-
bundle exec fastlane beta --env prod
85-
84+
bundle exec fastlane beta
85+
if: ${{ steps.regex.outputs.group1 == 'testflight' && steps.regex.outputs.group5 == 'debug' }}
86+
run: |
87+
bundle exec fastlane beta_debug

fastlane/Fastfile

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,38 @@ platform :ios do
4141
targets:"Siksha-Release",
4242
team_id:ENV["TEAM_ID"]
4343
)
44-
build_app(project:"Siksha.xcodeproj",scheme:"Siksha-Release",clean:true, silent:true)
44+
build_app(project:"Siksha.xcodeproj",scheme:"Siksha-Release",configuration:"Release",clean:true, silent:true)
45+
increment_build_number(build_number:ENV["BUILD_NUMBER"],xcodeproj:"Siksha.xcodeproj")
46+
increment_version_number(version_number:ENV["VERSION_NUMBER"],xcodeproj:"Siksha.xcodeproj")
47+
upload_to_testflight(app_version:ENV["VERSION_NUMBER"])
48+
slack(message:"uploaded to testflight")
49+
# add actions here: https://docs.fastlane.tools/actions
50+
end
51+
lane :beta_debug do
52+
ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "120"
53+
setup_ci
54+
app_store_connect_api_key(
55+
key_id:ENV["APPSTORE_CONNECT_KEY_ID"],
56+
issuer_id:ENV["APPSTORE_CONNECT_ISSUER_ID"],
57+
key_content:ENV["APPSTORE_CONNECT_KEY_CONTENT"]
58+
)
59+
60+
match(
61+
type: "appstore",
62+
app_identifier:ENV["BUNDLE_IDENTIFIER_DEV"],
63+
readonly: true
64+
)
65+
66+
update_code_signing_settings(
67+
use_automatic_signing: false,
68+
code_sign_identity: "Apple Distribution",
69+
profile_name:ENV["PROFILE_NAME"],
70+
path:"Siksha.xcodeproj",
71+
bundle_identifier:ENV["BUNDLE_IDENTIFIER_DEV"],
72+
targets:"Siksha-Debug",
73+
team_id:ENV["TEAM_ID"]
74+
)
75+
build_app(project:"Siksha.xcodeproj",scheme:"Siksha-Debug",configuration:"Debug",clean:true, silent:true)
4576
increment_build_number(build_number:ENV["BUILD_NUMBER"],xcodeproj:"Siksha.xcodeproj")
4677
increment_version_number(version_number:ENV["VERSION_NUMBER"],xcodeproj:"Siksha.xcodeproj")
4778
upload_to_testflight(app_version:ENV["VERSION_NUMBER"])

0 commit comments

Comments
 (0)