Skip to content

Commit

Permalink
Merge pull request #1238 from DNNCommunity/release/0.24.3
Browse files Browse the repository at this point in the history
Released v0.24.3
  • Loading branch information
valadas authored Dec 18, 2024
2 parents e9b622b + 7c941bc commit d678e4e
Show file tree
Hide file tree
Showing 14 changed files with 338 additions and 293 deletions.
36 changes: 21 additions & 15 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"Configuration": {
"type": "string",
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
"enum": [
"Debug",
"Release"
]
},
"GithubToken": {
"type": "string",
"description": "Github Token"
}
},
"definitions": {
"Host": {
"type": "string",
Expand Down Expand Up @@ -118,5 +104,25 @@
}
}
},
"$ref": "#/definitions/NukeBuild"
"allOf": [
{
"properties": {
"Configuration": {
"type": "string",
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
"enum": [
"Debug",
"Release"
]
},
"GithubToken": {
"type": "string",
"description": "Github Token"
}
}
},
{
"$ref": "#/definitions/NukeBuild"
}
]
}
22 changes: 0 additions & 22 deletions _build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,24 +109,6 @@ class Build : NukeBuild
.DependsOn(Clean)
.Executes(() =>
{
NpmLogger = (type, output) =>
{
if (type == OutputType.Std)
{
Serilog.Log.Information(output);
}
if (type == OutputType.Err)
{
if (output.StartsWith("npm WARN", StringComparison.OrdinalIgnoreCase))
{
Serilog.Log.Warning(output);
}
else
{
Serilog.Log.Error(output);
}
}
};
var version = gitRepository.IsOnMainOrMasterBranch() ? GitVersion.MajorMinorPatch : GitVersion.SemVer;
Npm($"version {version} --allow-same-version --git-tag-version false --workspaces", RootDirectory);

Expand Down Expand Up @@ -182,9 +164,6 @@ class Build : NukeBuild
.DependsOn(SetupGithubActor)
.Executes(() =>
{
// Prevents a bug where git sends ok message to the error output sink
GitLogger = (type, output) => Serilog.Log.Information(output);

// Because in CI we are in detached head,
// we create a local deploy branch to track our commit.
Git("switch -c deploy");
Expand All @@ -211,7 +190,6 @@ class Build : NukeBuild
.Executes(() =>
{
var version = gitRepository.IsOnMainOrMasterBranch() ? GitVersion.MajorMinorPatch : GitVersion.SemVer;
GitLogger = (type, output) => Serilog.Log.Information(output);
Git($"tag v{version}");
Git($"push origin --tags");
});
Expand Down
4 changes: 2 additions & 2 deletions _build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace></RootNamespace>
<NoWarn>CS0649;CS0169</NoWarn>
<NukeRootDirectory>..</NukeRootDirectory>
Expand All @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nuke.Common" Version="8.1.2" />
<PackageReference Include="Nuke.Common" Version="9.0.3" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.403",
"version": "9.0.100",
"rollForward": "latestMajor"
}
}
Loading

0 comments on commit d678e4e

Please sign in to comment.