Skip to content

Commit fc945f0

Browse files
authored
Check the app veyor tag for nuget publish
1 parent d31ab79 commit fc945f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.cake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Task("PublishMyGet")
209209
});
210210

211211
Task("PublishNuGet")
212-
.WithCriteria(() => buildParameters.ShouldPublishNuGet)
212+
.WithCriteria(() => buildParameters.ShouldPublishNuGet && !string.IsNullOrWhiteSpace("APPVEYOR_REPO_TAG_NAME"))
213213
.IsDependentOn("Pack")
214214
.Does(() =>
215215
{
@@ -330,4 +330,4 @@ public class BuildParameters
330330
.Append("/p:AssemblyVersion={0}", GitVersion.MajorMinorPatch)
331331
.Append("/p:FileVersion={0}", GitVersion.MajorMinorPatch)
332332
.Append("/p:AssemblyInformationalVersion={0}", GitVersion.InformationalVersion);
333-
}
333+
}

0 commit comments

Comments
 (0)