mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 18:32:51 +08:00
updated ensure stable release
This commit is contained in:
parent
4d0f389856
commit
68466b2193
10
build.cake
10
build.cake
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user