Fix package publishing

This commit is contained in:
Philip Wood 2017-02-19 20:56:05 +00:00
parent 832e1d777e
commit f1a403ae29

View File

@ -282,7 +282,7 @@ private void PersistVersion(string committedVersion, string newVersion)
} }
/// generates release notes based on issues closed in GitHub since the last release /// generates release notes based on issues closed in GitHub since the last release
private void GenerateReleaseNotes(string file) private void GenerateReleaseNotes(ConvertableFilePath file)
{ {
if (!IsRunningOnWindows()) if (!IsRunningOnWindows())
{ {
@ -308,7 +308,7 @@ private void GenerateReleaseNotes(string file)
} }
/// Publishes code and symbols packages to nuget feed, based on contents of artifacts file /// Publishes code and symbols packages to nuget feed, based on contents of artifacts file
private void PublishPackages(string packagesDir, string artifactsFile, string feedApiKey, string codeFeedUrl, string symbolFeedUrl) private void PublishPackages(ConvertableDirectoryPath packagesDir, ConvertableFilePath artifactsFile, string feedApiKey, string codeFeedUrl, string symbolFeedUrl)
{ {
var artifacts = System.IO.File var artifacts = System.IO.File
.ReadAllLines(artifactsFile) .ReadAllLines(artifactsFile)
@ -317,8 +317,7 @@ private void PublishPackages(string packagesDir, string artifactsFile, string fe
var codePackage = packagesDir + File(artifacts["nuget"]); var codePackage = packagesDir + File(artifacts["nuget"]);
Information("Pushing package"); Information("Pushing package " + codePackage);
NuGetPush( NuGetPush(
codePackage, codePackage,
new NuGetPushSettings { new NuGetPushSettings {