File tree 4 files changed +31
-5
lines changed
4 files changed +31
-5
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
30
39
APPSTORE_API_KEY : ${{ secrets.APPSTORE_API_KEY }}
31
40
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
41
GITHUB_PR_NUM : ${{ github.event.number }}
33
- run : bundle exec fastlane uikit_testflight_build
42
+ run : bundle exec fastlane uikit_testflight_build configuration:"${{ github.event.inputs.release }}"
34
43
- uses : 8398a7/action-slack@v3
35
44
with :
36
45
status : ${{ job.status }}
Original file line number Diff line number Diff line change 208
208
fastlane
209
209
pry
210
210
fastlane-plugin-sonarcloud_metric_kit (0.2.1 )
211
- fastlane-plugin-stream_actions (0.3.78 )
211
+ fastlane-plugin-stream_actions (0.3.79 )
212
212
xctest_list (= 1.2.1 )
213
213
fastlane-plugin-versioning (0.7.1 )
214
214
fastlane-sirp (1.0.0 )
@@ -459,7 +459,7 @@ DEPENDENCIES
459
459
fastlane-plugin-create_xcframework
460
460
fastlane-plugin-lizard
461
461
fastlane-plugin-sonarcloud_metric_kit
462
- fastlane-plugin-stream_actions (= 0.3.78 )
462
+ fastlane-plugin-stream_actions (= 0.3.79 )
463
463
fastlane-plugin-versioning
464
464
faye-websocket
465
465
jazzy
Original file line number Diff line number Diff line change @@ -273,14 +273,31 @@ lane :match_me do |options|
273
273
end
274
274
275
275
desc 'Builds the latest version of Demo app and uploads it to TestFlight'
276
- lane :uikit_testflight_build do
276
+ lane :uikit_testflight_build do |options |
277
+ is_manual_upload = is_localhost || !options [ :configuration ] . to_s . empty?
278
+ configuration = options [ :configuration ] . to_s . empty? ? 'Release' : options [ :configuration ]
279
+
277
280
match_me
281
+
282
+ sdk_version = get_sdk_version_from_environment
283
+ app_version =
284
+ if is_manual_upload
285
+ major , minor , _patch = sdk_version . split ( '.' ) . map ( &:to_i )
286
+ minor += 1
287
+ "#{ major } .#{ minor } .0"
288
+ else
289
+ sdk_version
290
+ end
291
+ UI . important ( "[TestFlight] Uploading DemoApp version: #{ app_version } " )
292
+
278
293
testflight_build (
279
294
api_key : appstore_api_key ,
280
295
xcode_project : xcode_project ,
281
296
sdk_target : 'StreamChat' ,
282
297
app_target : 'DemoApp' ,
298
+ app_version : app_version ,
283
299
app_identifier : 'io.getstream.iOS.ChatDemoApp' ,
300
+ configuration : configuration ,
284
301
extensions : [ 'DemoShare' ]
285
302
)
286
303
end
Original file line number Diff line number Diff line change 5
5
gem 'fastlane-plugin-versioning'
6
6
gem 'fastlane-plugin-create_xcframework'
7
7
gem 'fastlane-plugin-sonarcloud_metric_kit'
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