File tree Expand file tree Collapse file tree 4 files changed +31
-6
lines changed Expand file tree Collapse file tree 4 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 9
9
types : [published]
10
10
11
11
workflow_dispatch :
12
+ inputs :
13
+ release :
14
+ description : ' Build configuration'
15
+ required : true
16
+ default : ' Debug'
17
+ type : choice
18
+ options :
19
+ - Debug
20
+ - Release
12
21
13
22
env :
14
23
HOMEBREW_NO_INSTALL_CLEANUP : 1
32
41
APPSTORE_API_KEY : ${{ secrets.APPSTORE_API_KEY }}
33
42
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
43
GITHUB_PR_NUM : ${{ github.event.number }}
35
- run : bundle exec fastlane swiftui_testflight_build
44
+ run : bundle exec fastlane swiftui_testflight_build configuration:"${{ github.event.inputs.release }}"
36
45
- uses : 8398a7/action-slack@v3
37
46
with :
38
47
status : ${{ job.status }}
Original file line number Diff line number Diff line change 207
207
fastlane
208
208
pry
209
209
fastlane-plugin-sonarcloud_metric_kit (0.2.1 )
210
- fastlane-plugin-stream_actions (0.3.78 )
210
+ fastlane-plugin-stream_actions (0.3.79 )
211
211
xctest_list (= 1.2.1 )
212
212
fastlane-plugin-versioning (0.7.1 )
213
213
fastlane-sirp (1.0.0 )
@@ -440,7 +440,7 @@ DEPENDENCIES
440
440
fastlane-plugin-create_xcframework
441
441
fastlane-plugin-lizard
442
442
fastlane-plugin-sonarcloud_metric_kit
443
- fastlane-plugin-stream_actions (= 0.3.78 )
443
+ fastlane-plugin-stream_actions (= 0.3.79 )
444
444
fastlane-plugin-versioning
445
445
jazzy
446
446
json
Original file line number Diff line number Diff line change @@ -217,15 +217,31 @@ lane :match_me do |options|
217
217
end
218
218
219
219
desc 'Builds the latest version of Demo app and uploads it to TestFlight'
220
- lane :swiftui_testflight_build do
220
+ lane :swiftui_testflight_build do |options |
221
+ is_manual_upload = is_localhost || !options [ :configuration ] . to_s . empty?
222
+ configuration = options [ :configuration ] . to_s . empty? ? 'Release' : options [ :configuration ]
223
+
221
224
match_me
225
+
226
+ sdk_version = get_sdk_version_from_environment
227
+ app_version =
228
+ if is_manual_upload
229
+ major , minor , _patch = sdk_version . split ( '.' ) . map ( &:to_i )
230
+ minor += 1
231
+ "#{ major } .#{ minor } .0"
232
+ else
233
+ sdk_version
234
+ end
235
+ UI . important ( "[TestFlight] Uploading DemoApp version: #{ app_version } " )
236
+
222
237
testflight_build (
223
238
api_key : appstore_api_key ,
224
239
xcode_project : xcode_project ,
225
240
sdk_target : 'StreamChatSwiftUI' ,
241
+ app_version : app_version ,
226
242
app_target : 'DemoAppSwiftUI' ,
227
243
app_identifier : 'io.getstream.iOS.DemoAppSwiftUI' ,
228
- app_version : File . read ( swift_environment_path ) . match ( /String \s += \s +"([ \d .]+)"/ ) [ 1 ]
244
+ configuration : configuration
229
245
)
230
246
end
231
247
Original file line number Diff line number Diff line change 5
5
gem 'fastlane-plugin-versioning'
6
6
gem 'fastlane-plugin-sonarcloud_metric_kit'
7
7
gem 'fastlane-plugin-create_xcframework'
8
- gem 'fastlane-plugin-stream_actions', '0.3.78 '
8
+ gem 'fastlane-plugin-stream_actions', '0.3.79 '
You can’t perform that action at this time.
0 commit comments