File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,6 @@ platform :ios do
35
35
36
36
desc "Create a release version by building and committing a changelog, pushing a tag to GitHub, and pushing pods to CocoaPods"
37
37
lane :release do
38
- # Define `COCOAPODS_TRUNK_TOKEN` env var for trunk authentication
39
- # https://github.com/CocoaPods/cocoapods-trunk/commit/9e6ec1c1faf96fa837dc2ed70b5f54006b181ed6
40
- secret = sh (
41
- command : 'aws secretsmanager get-secret-value --secret-id ${COCOAPODS_SECRET_ARN}' ,
42
- log : false
43
- )
44
-
45
- ENV [ 'COCOAPODS_TRUNK_TOKEN' ] = JSON . parse ( secret ) [ "SecretString" ]
46
-
47
38
next_version , commits = calculate_next_release_version ( version_limit :'v2.0.0' )
48
39
if next_version >= '2.0.0'
49
40
UI . message ( "Received version: #{ next_version } , exiting lane because version is larger than 2.0.0" )
@@ -116,6 +107,15 @@ platform :ios do
116
107
117
108
desc "Release pods"
118
109
private_lane :release_pods do
110
+ # Define `COCOAPODS_TRUNK_TOKEN` env var for trunk authentication
111
+ # https://github.com/CocoaPods/cocoapods-trunk/commit/9e6ec1c1faf96fa837dc2ed70b5f54006b181ed6
112
+ secret = sh (
113
+ command : 'aws secretsmanager get-secret-value --secret-id ${COCOAPODS_SECRET_ARN}' ,
114
+ log : false
115
+ )
116
+
117
+ ENV [ 'COCOAPODS_TRUNK_TOKEN' ] = JSON . parse ( secret ) [ "SecretString" ]
118
+
119
119
AmplifyPods . pods . each do |pod |
120
120
if pod [ :no_push ]
121
121
UI . message "Skipping pushing pod #{ pod [ :spec ] } "
You can’t perform that action at this time.
0 commit comments