Skip to content

Commit

Permalink
Update GitReleaseManager
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Aug 18, 2021
1 parent f0c6100 commit d49dce0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#module nuget:?package=Cake.DotNetTool.Module&version=0.5.0
#tool dotnet:?package=NuGetKeyVaultSignTool&version=1.2.28
#tool dotnet:?package=AzureSignTool&version=2.0.17
#tool dotnet:?package=GitReleaseManager.Tool&version=0.11.0
#tool dotnet:?package=GitReleaseManager.Tool&version=0.12.0
#tool dotnet:?package=GitVersion.Tool&version=5.6.6

#tool vswhere&version=2.8.4
Expand Down Expand Up @@ -111,7 +111,7 @@ Task("Build")
Verbosity = verbosity
, ToolPath = msBuildPathExe
, Configuration = configuration
, ArgumentCustomization = args => args.Append("/m").Append("/nr:false") // The /nr switch tells msbuild to quite once its done
, ArgumentCustomization = args => args.Append("/m").Append("/nr:false") // The /nr switch tells msbuild to quite once its done
, BinaryLogger = new MSBuildBinaryLogSettings() { Enabled = isLocal }
};
MSBuild(solution, msBuildSettings
Expand All @@ -130,7 +130,7 @@ Task("dotnetBuild")
var buildSettings = new DotNetCoreBuildSettings {
Verbosity = dotnetcoreverbosity,
Configuration = configuration,
ArgumentCustomization = args => args.Append("/m").Append("/nr:false"), // The /nr switch tells msbuild to quite once its done
ArgumentCustomization = args => args.Append("/m").Append("/nr:false"), // The /nr switch tells msbuild to quite once its done
MSBuildSettings = new DotNetCoreMSBuildSettings()
.SetMaxCpuCount(0)
.SetConfiguration(configuration)
Expand Down Expand Up @@ -344,19 +344,13 @@ Task("CreateRelease")
.WithCriteria(() => !isPullRequest)
.Does(() =>
{
var username = EnvironmentVariable("GITHUB_USERNAME");
if (string.IsNullOrEmpty(username))
{
throw new Exception("The GITHUB_USERNAME environment variable is not defined.");
}

var token = EnvironmentVariable("GITHUB_TOKEN");
if (string.IsNullOrEmpty(token))
{
throw new Exception("The GITHUB_TOKEN environment variable is not defined.");
}

GitReleaseManagerCreate(username, token, "punker76", repoName, new GitReleaseManagerCreateSettings {
GitReleaseManagerCreate(token, "punker76", repoName, new GitReleaseManagerCreateSettings {
Milestone = gitVersion.MajorMinorPatch,
Name = gitVersion.AssemblySemFileVer,
Prerelease = isDevelopBranch,
Expand Down

0 comments on commit d49dce0

Please sign in to comment.