Skip to content

Commit

Permalink
style: Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnatamo committed Jan 3, 2025
1 parent 87a51db commit b077ec9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .build/Build.Publish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ partial class Build : NukeBuild
Target Publish => _ => _
.Description("Publishes the .NET projects and builds them as single-file applications\n")
.DependsOn(Compile)
.Executes(() => {
.Executes(() =>
{
string runtimeIdentifier = "win-x64";

if(OperatingSystem.IsLinux()) {
if(OperatingSystem.IsLinux())
{
runtimeIdentifier = "linux-x64";
}

Expand Down
8 changes: 5 additions & 3 deletions .build/Build.Release.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,22 @@ partial class Build : NukeBuild

Release release;

try {
try
{
release = await GitHubTasks.GitHubClient.Repository.Release.Get(
this.Repository.GetGitHubOwner(),
this.Repository.GetGitHubName(),
this.VersionTag);
}
catch {
catch
{
release = await GitHubTasks.GitHubClient.Repository.Release.Create(
this.Repository.GetGitHubOwner(),
this.Repository.GetGitHubName(),
newRelease);
}

foreach (AbsolutePath asset in AssetsDirectory.GlobFiles($"fetcharr-{VersionTag}-*.zip"))
foreach(AbsolutePath asset in AssetsDirectory.GlobFiles($"fetcharr-{VersionTag}-*.zip"))
{
ReleaseAssetUpload assetUpload = new()
{
Expand Down

0 comments on commit b077ec9

Please sign in to comment.