Skip to content

Commit

Permalink
Runner unique artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Nov 4, 2024
1 parent 1e989a9 commit 223270e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ Task("Clean")
.WithCriteria(BuildSystem.IsRunningOnGitHubActions, nameof(BuildSystem.IsRunningOnGitHubActions))
.Does<BuildData>(
static (context, data) => context
.GitHubActions()
.Commands
.UploadArtifact(data.ArtifactsPath, "artifacts")
.GitHubActions() is var gh && gh != null
? gh.Commands
.UploadArtifact(data.ArtifactsPath, $"Artifact_{gh.Environment.Runner.ImageOS ?? gh.Environment.Runner.OS}_{context.Environment.Runtime.BuiltFramework.Identifier}_{context.Environment.Runtime.BuiltFramework.Version}")
: throw new Exception("GitHubActions not available")
)
.Then("Integration-Tests-Tool-Manifest")
.Does<BuildData>(
Expand Down

0 comments on commit 223270e

Please sign in to comment.