if else yo

This commit is contained in:
Tommy Parnell
2016-06-29 17:09:18 -07:00
parent ef33598e31
commit d761e6c904

View File

@@ -65,14 +65,15 @@ desc 'publish nugets'
task :nuspec_publish do
if ENV['APPVEYOR_REPO_TAG'] != 'true'
puts 'not publishing since APPVEYOR_REPO_TAG has not been set. Please add a github tag'
return nil
end
else
PROJECTS.each{|dir|
Dir.chdir(dir) do
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}"
end
}
sh "#{NUGET_EXE} push #{FileList["*.nupkg"].first} -ApiKey #{NUGET_KEY}"
end
end