@@ -50,7 +50,7 @@ platform :ios do
50
50
version = options [ :version ] . to_s
51
51
52
52
AmplifyPods . pods . each do |pod |
53
- spec , push , constants , plist_paths = pod . values
53
+ spec , constants , plist_paths = pod . values
54
54
55
55
UI . message ( "Incrementing version for #{ spec } " )
56
56
@@ -80,25 +80,28 @@ platform :ios do
80
80
desc "Tag in git and push to GitHub"
81
81
private_lane :add_tag do |options |
82
82
next_version = options [ :version ]
83
+ next_tag = "v#{ next_version } "
83
84
84
- add_git_tag ( tag : next_version )
85
- push_git_tags ( tag : next_version )
85
+ add_git_tag ( tag : next_tag )
86
+ push_git_tags ( tag : next_tag )
86
87
end
87
88
88
89
89
90
desc "Release pods"
90
91
private_lane :release_pods do
91
92
AmplifyPods . pods . each do |pod |
93
+ pod_path = "/Users/distiller/amplify-ios/#{ pod [ :spec ] } "
92
94
93
95
UI . message ( "Pushing pod #{ pod [ :spec ] } " )
94
- sh ( 'pod' , 'trunk' , 'push' , pod [ :spec ] , '--allow-warnings' , '--synchronous' )
96
+
97
+ sh ( 'pod' , 'trunk' , 'push' , pod_path , '--allow-warnings' , '--synchronous' )
95
98
96
99
# TODO: utilize action once the PR for adding `synchronous` options has been merged
97
100
# https://github.com/fastlane/fastlane/pull/16698
98
101
# pod_push(path: pod[:spec], allow_warnings: true, synchronous: true)
99
102
100
- # In theory `repo update` should no longer be needed with the synchronous option
101
- # Leaving it just in case. We can remove after the first successful release
102
- # sh('pod', 'repo', 'update')
103
+ # This shouldn't be necessary... but it is
104
+ sh ( 'pod' , 'repo' , 'update' )
105
+ end
103
106
end
104
107
end
0 commit comments