Skip to content

Commit

Permalink
Upload AppVeyor artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Jun 26, 2020
1 parent 2e70586 commit c9e90bc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,19 @@ Task("Publish-MyGet")
});
});

Task("Upload-AppVeyor-Artifacts")
.IsDependentOn("Create-NuGet-Package")
.IsDependentOn("Test")
.WithCriteria(() => !isLocalBuild)
.Does(() =>
{
// Get the path to the package.
var package = nugetRoot + "Cake.Git." + semVersion + ".nupkg";

// Upload Artifact
AppVeyor.UploadArtifact(package);
});


Task("Default")
.IsDependentOn("Create-NuGet-Package")
Expand All @@ -308,6 +321,7 @@ Task("Local-Tests")
.IsDependentOn("Test");

Task("AppVeyor")
.IsDependentOn("Upload-AppVeyor-Artifacts")
.IsDependentOn("Publish-MyGet");

Task("Travis")
Expand Down

0 comments on commit c9e90bc

Please sign in to comment.