@@ -7,13 +7,14 @@ platform :ios do
7
7
desc "locally execute full automated iOS SDK release on your terminal"
8
8
lane :release_sdk do
9
9
set_version = prompt ( text : "Please set the release version number" )
10
+ set_changelog_section = prompt ( text : "Please provide changelog section header" )
10
11
set_output_dir = prompt ( text : "Please specify an output directory" )
11
12
set_github_token = prompt ( text : "Please provide github token" )
12
13
13
14
bump_release_version ( version :set_version )
14
15
clean_and_lint
15
16
build_xcframework ( output_dir :set_output_dir )
16
- create_release ( version :set_version , output_dir :set_output_dir , github_token :set_github_token )
17
+ create_release ( version :set_version , output_dir :set_output_dir , changelog_section : set_changelog_section , github_token :set_github_token )
17
18
pod_trunk_push
18
19
end
19
20
@@ -79,21 +80,20 @@ platform :ios do
79
80
desc "create github release and upload assets"
80
81
lane :create_release do |options |
81
82
version = options [ :version ]
83
+ changelog_section = options [ :changelog_section ]
82
84
output_dir = options [ :output_dir ]
83
-
84
85
github_token = options [ :github_token ]
85
- set_api_token = github_token . empty? ? ENV [ "GITHUB_TOKEN" ] : github_token
86
86
87
87
add_git_tag ( tag : "#{ version } " )
88
88
89
89
version_changelog = read_changelog (
90
90
changelog_path : 'CHANGELOG.md' ,
91
- section_identifier : "[#{ version } ]" ,
91
+ section_identifier : "[#{ changelog_section } ]" ,
92
92
)
93
93
94
94
github_release = set_github_release (
95
95
repository_name : "Iterable/swift-sdk" ,
96
- api_token : set_api_token ,
96
+ api_token : github_token ,
97
97
name : "#{ version } " ,
98
98
tag_name : "#{ version } " ,
99
99
description : version_changelog ,
0 commit comments