GitReleaseManagerAliases.

GitReleaseManagerCreate(ICakeContext, string, string, string, GitReleaseManagerCreateSettings) Method

Summary

Creates a Package Release using the specified settings.

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Create")]
[CakeNamespaceImport("Cake.Common.Tools.GitReleaseManager.Create")]
public static void GitReleaseManagerCreate(this ICakeContext context, string token, string owner, string repository, GitReleaseManagerCreateSettings settings)

Examples

GitReleaseManagerCreate("token", "owner", "repo", new GitReleaseManagerCreateSettings {
    Milestone         = "0.1.0",
    Prerelease        = false,
    Assets            = "c:/temp/asset1.txt,c:/temp/asset2.txt",
    TargetCommitish   = "master",
    TargetDirectory   = "c:/repo",
    LogFilePath       = "c:/temp/grm.log"
});
GitReleaseManagerCreate("token", "owner", "repo", new GitReleaseManagerCreateSettings {
    Name              = "0.1.0",
    InputFilePath     = "c:/repo/releasenotes.md",
    Prerelease        = false,
    Assets            = "c:/temp/asset1.txt,c:/temp/asset2.txt",
    TargetCommitish   = "master",
    TargetDirectory   = "c:/repo",
    LogFilePath       = "c:/temp/grm.log"
});

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.
CakeNamespaceImportAttribute An attribute used to hint Cake about additional namespaces that need to be imported for an alias to work. This attribute can mark an extension method, the extension method class, or the assembly to provide a global set of imports.

Parameters

Name Type Description
context ICakeContext The context.
token string The token.
owner string The owner.
repository string The repository.
settings GitReleaseManagerCreateSettings The settings.

Return Value

Type Description
void