Skip to content

Commit d49dce0

Browse files
committed
Update GitReleaseManager
1 parent f0c6100 commit d49dce0

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

build.cake

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#module nuget:?package=Cake.DotNetTool.Module&version=0.5.0
66
#tool dotnet:?package=NuGetKeyVaultSignTool&version=1.2.28
77
#tool dotnet:?package=AzureSignTool&version=2.0.17
8-
#tool dotnet:?package=GitReleaseManager.Tool&version=0.11.0
8+
#tool dotnet:?package=GitReleaseManager.Tool&version=0.12.0
99
#tool dotnet:?package=GitVersion.Tool&version=5.6.6
1010

1111
#tool vswhere&version=2.8.4
@@ -111,7 +111,7 @@ Task("Build")
111111
Verbosity = verbosity
112112
, ToolPath = msBuildPathExe
113113
, Configuration = configuration
114-
, ArgumentCustomization = args => args.Append("/m").Append("/nr:false") // The /nr switch tells msbuild to quite once its done
114+
, ArgumentCustomization = args => args.Append("/m").Append("/nr:false") // The /nr switch tells msbuild to quite once its done
115115
, BinaryLogger = new MSBuildBinaryLogSettings() { Enabled = isLocal }
116116
};
117117
MSBuild(solution, msBuildSettings
@@ -130,7 +130,7 @@ Task("dotnetBuild")
130130
var buildSettings = new DotNetCoreBuildSettings {
131131
Verbosity = dotnetcoreverbosity,
132132
Configuration = configuration,
133-
ArgumentCustomization = args => args.Append("/m").Append("/nr:false"), // The /nr switch tells msbuild to quite once its done
133+
ArgumentCustomization = args => args.Append("/m").Append("/nr:false"), // The /nr switch tells msbuild to quite once its done
134134
MSBuildSettings = new DotNetCoreMSBuildSettings()
135135
.SetMaxCpuCount(0)
136136
.SetConfiguration(configuration)
@@ -344,19 +344,13 @@ Task("CreateRelease")
344344
.WithCriteria(() => !isPullRequest)
345345
.Does(() =>
346346
{
347-
var username = EnvironmentVariable("GITHUB_USERNAME");
348-
if (string.IsNullOrEmpty(username))
349-
{
350-
throw new Exception("The GITHUB_USERNAME environment variable is not defined.");
351-
}
352-
353347
var token = EnvironmentVariable("GITHUB_TOKEN");
354348
if (string.IsNullOrEmpty(token))
355349
{
356350
throw new Exception("The GITHUB_TOKEN environment variable is not defined.");
357351
}
358352

359-
GitReleaseManagerCreate(username, token, "punker76", repoName, new GitReleaseManagerCreateSettings {
353+
GitReleaseManagerCreate(token, "punker76", repoName, new GitReleaseManagerCreateSettings {
360354
Milestone = gitVersion.MajorMinorPatch,
361355
Name = gitVersion.AssemblySemFileVer,
362356
Prerelease = isDevelopBranch,

0 commit comments

Comments
 (0)