AppVeyorProvider.

UploadArtifact(FilePath, AppVeyorUploadArtifactsSettings) Method

Summary

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

Syntax

public void UploadArtifact(FilePath path, AppVeyorUploadArtifactsSettings settings)

Examples

if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
    BuildSystem.AppVeyor.UploadArtifact(
        "./build/release_x86.zip",
        new AppVeyorUploadArtifactsSettings()
            .SetArtifactType(AppVeyorUploadArtifactType.Auto)
            .SetDeploymentName("release"));
}

Parameters

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

Return Value

Type Description
void