Skip to content

Commit

Permalink
fix: adjust fastlane 6 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjankowski authored Jan 6, 2022
1 parent c13ac0c commit edfc469
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,15 @@ platform :ios do
desc "Publish to version of cocoapods"
lane :make_publish_pod do |options|
dry_run = options[:dry_run] || false
podpsec_name = ENV["PODSPEC_NAME"]
trunk_token = ENV["COCOAPODS_TRUNK_TOKEN"]

if dry_run == true
UI.important("Running in \"dry run\" mode. Publish to cocoapods won't happen.")
else
if trunk_token.nil?
UI.user_error!("System environment \"COCOAPODS_TRUNK_TOKEN\" is required to publish a pod. Aborting script.")
end

Dir.chdir("..") do
sh("pod lib lint --allow-warnings")
sh(" #{podpsec_name} --allow-warnings")
Expand Down

0 comments on commit edfc469

Please sign in to comment.