Skip to content

Commit

Permalink
updated ensure stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Pallister authored and Tom Pallister committed Oct 9, 2017
1 parent 4d0f389 commit 68466b2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,19 @@ Task("ReleasePackagesToUnstableFeed")
Task("EnsureStableReleaseRequirements")
.Does(() =>
{
Information("Check if stable release...");

if (!AppVeyor.IsRunningOnAppVeyor)
{
throw new Exception("Stable release should happen via appveyor");
}


Information("Running on AppVeyor...");

Information("IsTag = " + AppVeyor.Environment.Repository.Tag.IsTag);

Information("Name = " + AppVeyor.Environment.Repository.Tag.Name);

var isTag =
AppVeyor.Environment.Repository.Tag.IsTag &&
!string.IsNullOrWhiteSpace(AppVeyor.Environment.Repository.Tag.Name);
Expand All @@ -274,6 +282,8 @@ Task("EnsureStableReleaseRequirements")
{
throw new Exception("Stable release should happen from a published GitHub release");
}

Information("Release is stable...");
});

Task("UpdateVersionInfo")
Expand Down

0 comments on commit 68466b2

Please sign in to comment.