RwxCommands.

UploadArtifact(FilePath) Method

Summary

Uploads a file as an RWX artifact for the current task. The file is copied into {RWX_ARTIFACTS}/{filename}, where filename is the leaf name of path.
Namespace
Cake.Common.Build.Rwx.Commands
Containing Type
RwxCommands

Syntax

public void UploadArtifact(FilePath path)

Examples

if (BuildSystem.Rwx.IsRunningOnRwx)
{
    BuildSystem.Rwx.Commands.UploadArtifact("./artifacts/package.nupkg");
}
if (Rwx.IsRunningOnRwx)
{
    Rwx.Commands.UploadArtifact("./artifacts/package.nupkg");
}

Parameters

Name Type Description
path FilePath Path to the local file to upload.

Return Value

Type Description
void