This repository has been archived by the owner on Nov 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/0.31.0: (build) Prepare 0.31.0 release * Update GitVersion * Remove unused NuGet sources * Upload artifacts to AppVeyor (GH-56) Update to Cake 0.31.0 * fixes #56 Only update template version on AppVeyor
- Loading branch information
Showing
11 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Cake.Common.Tools.NuGet; | ||
using Cake.Common.Tools.NuGet.Push; | ||
using Cake.Core; | ||
using Cake.Core.IO; | ||
using Cake.Frosting; | ||
|
||
[Dependency(typeof(Package))] | ||
public class AppVeyorArtifacts : FrostingTask<Context> | ||
{ | ||
public override bool ShouldRun(Context context) | ||
{ | ||
return context.AppVeyor; | ||
} | ||
|
||
public override void Run(Context context) | ||
{ | ||
// Get the file paths. | ||
var root = new DirectoryPath("./src/Cake.Frosting"); | ||
var files = new[] { | ||
$"./artifacts/Cake.Frosting.Template.{context.Version.SemVersion}.nupkg", | ||
$"./artifacts/Cake.Frosting.{context.Version.SemVersion}.nupkg", | ||
$"./artifacts/Cake.Frosting.{context.Version.SemVersion}.symbols.nupkg" | ||
}; | ||
|
||
|
||
// Push files | ||
foreach(var file in files) | ||
{ | ||
context.BuildSystem.AppVeyor.UploadArtifact( | ||
file | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters