IAppVeyorProvider.

UploadArtifact(FilePath, Action<AppVeyorUploadArtifactsSettings>) Method

Summary

Uploads an AppVeyor artifact.
Namespace
Cake.Common.Build.AppVeyor
Containing Type
IAppVeyorProvider

Syntax

void UploadArtifact(FilePath path, Action<AppVeyorUploadArtifactsSettings> settingsAction)

Examples

if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
    BuildSystem.AppVeyor.UploadArtifact("./build/release_x86.zip", settings =>
    {
        settings.SetDeploymentName("release");
    });
}
if (AppVeyor.IsRunningOnAppVeyor)
{
    AppVeyor.UploadArtifact("./build/release_x86.zip", settings =>
    {
        settings.SetDeploymentName("release");
    });
}

Parameters

Name Type Description
path FilePath The file path of the artifact to upload.
settingsAction Action<AppVeyorUploadArtifactsSettings> The settings to apply when uploading an artifact.

Return Value

Type Description
void