updated ensure stable release

This commit is contained in:
Tom Pallister 2017-10-09 17:06:05 +01:00
parent 4d0f389856
commit 68466b2193

View File

@ -261,11 +261,19 @@ Task("ReleasePackagesToUnstableFeed")
Task("EnsureStableReleaseRequirements") Task("EnsureStableReleaseRequirements")
.Does(() => .Does(() =>
{ {
Information("Check if stable release...");
if (!AppVeyor.IsRunningOnAppVeyor) if (!AppVeyor.IsRunningOnAppVeyor)
{ {
throw new Exception("Stable release should happen via appveyor"); 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 = var isTag =
AppVeyor.Environment.Repository.Tag.IsTag && AppVeyor.Environment.Repository.Tag.IsTag &&
!string.IsNullOrWhiteSpace(AppVeyor.Environment.Repository.Tag.Name); !string.IsNullOrWhiteSpace(AppVeyor.Environment.Repository.Tag.Name);
@ -274,6 +282,8 @@ Task("EnsureStableReleaseRequirements")
{ {
throw new Exception("Stable release should happen from a published GitHub release"); throw new Exception("Stable release should happen from a published GitHub release");
} }
Information("Release is stable...");
}); });
Task("UpdateVersionInfo") Task("UpdateVersionInfo")