Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Sep 6, 2024
1 parent 7872ad3 commit 21ecb3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tasks/PublishLibraryTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ public override async Task RunAsync(BuildContext context)
}
}

foreach (var r in availableRids)
foreach (var r in availableRids) {
context.Information($"Uploading: {context.ArtifactsDir}/{r} to artifacts-{r}");
await context.BuildSystem().GitHubActions.Commands.UploadArtifact(DirectoryPath.FromString($"{context.ArtifactsDir}/{r}"), $"artifacts-{r}");
}

if (availableRids.Any ())
return;
Expand All @@ -58,6 +60,7 @@ public override async Task RunAsync(BuildContext context)
_ => "-x64",
};
}
context.Information($"Uploading: {context.ArtifactsDir} to artifacts-{rid}");
await context.BuildSystem().GitHubActions.Commands.UploadArtifact(DirectoryPath.FromString(context.ArtifactsDir), $"artifacts-{rid}");
}
}

0 comments on commit 21ecb3f

Please sign in to comment.