Skip to content

Commit b5bb6ab

Browse files
committed
🩹 Fix match and xcconfig
1 parent 7594944 commit b5bb6ab

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

‎.github/workflows/snutt-deploy.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ jobs:
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: |

‎SNUTT/fastlane/Fastfile‎

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)