From 69e50be5e5ea8f5a0c72b2b7dcb01b02b10620bb Mon Sep 17 00:00:00 2001 From: Florian Rappl Date: Sun, 22 May 2016 22:57:34 +0200 Subject: [PATCH] Updated build instructions --- build.cake | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/build.cake b/build.cake index 68cd7edf..9526b2f7 100644 --- a/build.cake +++ b/build.cake @@ -159,7 +159,7 @@ Task("Publish-Release") if (String.IsNullOrEmpty(githubToken)) { - throw new InvalidOperationException("Could not resolve AngleSharp GitHub token."); + throw new InvalidOperationException("Could not resolve MAGES GitHub token."); } var github = new GitHubClient(new ProductHeaderValue("MagesCakeBuild")) @@ -167,13 +167,20 @@ Task("Publish-Release") Credentials = new Credentials(githubToken) }; - github.Release.Create("FlorianRappl", "Mages", new NewRelease("v" + version) + var release = github.Release.Create("FlorianRappl", "Mages", new NewRelease("v" + version) { Name = version, Body = String.Join(Environment.NewLine, releaseNotes.Notes), Prerelease = false, TargetCommitish = "master" - }).Wait(); + }).Result; + + var libPath = buildResultDir + File("Mages.Core.dll"); + + using (var libStream = System.IO.File.OpenRead(libPath.Path.FullPath)) + { + github.Release.UploadAsset(release, new ReleaseAssetUpload("Mages.Core.dll", "application/x-msdownload", libStream, null)).Wait(); + } }); Task("Update-AppVeyor-Build-Number")