File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed
Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 4141
4242 - name : Create XCConfig files from secrets
4343 run : |
44- echo '#include "Base.xcconfig"' > XCConfigs/Dev.xcconfig
45- echo "${{ secrets.DEBUG_CONFIG }}" >> XCConfigs/Dev.xcconfig
46- echo '#include "Base.xcconfig"' > XCConfigs/Prod.xcconfig
47- echo "${{ secrets.RELEASE_CONFIG }}" >> XCConfigs/Prod.xcconfig
44+ echo "${{ secrets.DEV_XCCONFIG }}" > XCConfigs/Dev.xcconfig
45+ echo "${{ secrets.PROD_XCCONFIG }}" > XCConfigs/Prod.xcconfig
4846
4947 - name : Create GoogleService-Info.plist files
5048 run : |
Original file line number Diff line number Diff line change @@ -134,17 +134,6 @@ platform :ios do
134134 UI . success ( "✅ Development certificates synced and code signing configured!" )
135135 end
136136
137- desc "Sync certificates and provisioning profiles using Match"
138- lane :sync_certificates do |options |
139- setup_ci if ENV [ "CI" ]
140-
141- match (
142- type : "appstore" ,
143- app_identifier : options [ :app_identifier ] ,
144- readonly : is_ci
145- )
146- end
147-
148137 desc "Deploy to TestFlight or App Store"
149138 lane :deploy do |options |
150139 scheme = options [ :scheme ]
@@ -168,8 +157,16 @@ platform :ios do
168157 key_content : ENV [ "APP_STORE_CONNECT_KEY_CONTENT" ]
169158 )
170159
171- # Sync certificates
172- sync_certificates ( app_identifier : app_identifier )
160+ # Setup CI environment
161+ setup_ci if ENV [ "CI" ]
162+
163+ # Sync certificates and provisioning profiles using Match
164+ widget_bundle_id = "#{ app_identifier } .widget"
165+ match (
166+ type : "appstore" ,
167+ app_identifier : [ app_identifier , widget_bundle_id ] ,
168+ readonly : is_ci
169+ )
173170
174171 # Get the latest build number from App Store Connect for this version
175172 latest_build_number = latest_testflight_build_number (
You can’t perform that action at this time.
0 commit comments