Skip to content

Commit d4d1a1e

Browse files
committed
Added skip to push package if it exists already
1 parent 8b25243 commit d4d1a1e

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

tools/anglesharp.cake

+1-21
Original file line numberDiff line numberDiff line change
@@ -119,27 +119,6 @@ Task("Create-Package")
119119

120120
DotNetCorePack($"./src/{solutionName}/", settings);
121121
});
122-
// .IsDependentOn("Copy-Files")
123-
// .Does(() =>
124-
// {
125-
// var nugetExe = GetFiles("./tools/**/nuget.exe").FirstOrDefault()
126-
// ?? (isRunningOnAppVeyor ? GetFiles("C:\\Tools\\NuGet3\\nuget.exe").FirstOrDefault() : null)
127-
// ?? throw new InvalidOperationException("Could not find nuget.exe.");
128-
//
129-
// var nuspec = nugetRoot + File($"{projectName}.nuspec");
130-
//
131-
// NuGetPack(nuspec, new NuGetPackSettings
132-
// {
133-
// Version = version,
134-
// OutputDirectory = nugetRoot,
135-
// Symbols = true,
136-
//
137-
// Properties = new Dictionary<String, String>
138-
// {
139-
// { "Configuration", configuration },
140-
// },
141-
// });
142-
// });
143122

144123
Task("Publish-Package")
145124
.IsDependentOn("Create-Package")
@@ -159,6 +138,7 @@ Task("Publish-Package")
159138
{
160139
Source = "https://nuget.org/api/v2/package",
161140
ApiKey = apiKey,
141+
SkipDuplicate = true
162142
});
163143
}
164144
});

0 commit comments

Comments
 (0)