Skip to content

Commit

Permalink
Updated CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiryuumaru committed Jul 7, 2024
1 parent 076df67 commit 9f9773f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Build : BaseNukeBuildHelpers
BuildEntry TransactionHelpersBuild => _ => _
.AppId("transaction_helpers")
.RunnerOS(RunnerOS.Ubuntu2204)
.Condition(true)
.CommonReleaseAsset(OutputDirectory)
.Execute(context =>
{
var projectPath = RootDirectory / "TransactionHelpers" / "TransactionHelpers.csproj";
Expand All @@ -70,7 +70,7 @@ public class Build : BaseNukeBuildHelpers
.SetIncludeSymbols(true)
.SetSymbolPackageFormat("snupkg")
.SetVersion(version)
.SetPackageReleaseNotes(releaseNotes)
.SetPackageReleaseNotes(NormalizeReleaseNotes(releaseNotes))
.SetOutputDirectory(OutputDirectory));
});

Expand All @@ -91,4 +91,12 @@ public class Build : BaseNukeBuildHelpers
.SetTargetPath(OutputDirectory / "**"));
}
});

private string? NormalizeReleaseNotes(string? releaseNotes)
{
return releaseNotes?
.Replace(",", "%2C")?
.Replace(":", "%3A")?
.Replace(";", "%3B");
}
}
2 changes: 1 addition & 1 deletion build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="Nuke.Common" Version="8.0.0" />
<PackageReference Include="NukeBuildHelpers" Version="3.3.4" />
<PackageReference Include="NukeBuildHelpers" Version="4.0.1" />
</ItemGroup>

</Project>

0 comments on commit 9f9773f

Please sign in to comment.