Skip to content

Commit

Permalink
Merge pull request #2 from alfusinigoj/master
Browse files Browse the repository at this point in the history
Stable version upgrade for release
  • Loading branch information
alfusinigoj committed Jun 26, 2019
2 parents 239a57e + 343608c commit b035e26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GitVersion.yml
@@ -1,5 +1,5 @@
mode: ContinuousDelivery
next-version: 1.2.1
next-version: 1.4.2
branches: {}
ignore:
sha: []
7 changes: 4 additions & 3 deletions build/Build.cs
Expand Up @@ -189,7 +189,7 @@ private void ReleaseInGitHub(string artifactFullPath)
}
catch (Exception)
{
Logger.Log(LogLevel.Normal, $"Release with name {releaseName} not found.. so creating new...");
Logger.Log(LogLevel.Normal, $"Release with name {releaseName} not found.. so creating new...");

var newRelease = new NewRelease(releaseName)
{
Expand All @@ -209,9 +209,10 @@ private void ReleaseInGitHub(string artifactFullPath)
client.Repository.Release.DeleteAsset(owner, repoName, existingAsset.Id);
}

Logger.Log(LogLevel.Normal, $"Uploading assert {existingAsset.Name}...");

var releaseAssetUpload = new ReleaseAssetUpload(packageName, "application/zip", File.OpenRead(artifactFullPath), null);

Logger.Log(LogLevel.Normal, $"Uploading assert {releaseAssetUpload.FileName}...");

var releaseAsset = client.Repository.Release.UploadAsset(release, releaseAssetUpload).Result;

Logger.Block(releaseAsset.BrowserDownloadUrl);
Expand Down

0 comments on commit b035e26

Please sign in to comment.