This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.GitHub.
Summary
Creates a new GitHub Release with the specified settings.
Syntax
public static Task<GitHubRelease> GitHubCreateReleaseAsync(this ICakeContext context, string userName, string apiToken, string owner, string repository, string tagName, GitHubCreateReleaseSettings settings = null)
Attributes
Type |
Description |
AsyncStateMachineAttribute |
|
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The Cake context |
userName |
string |
The user name to use for authentication (pass null when using an access token). |
apiToken |
string |
The access token or password to use for authentication. |
owner |
string |
The owner (user or group) of the repository to create a Release in. |
repository |
string |
The name of the repository to create a release in. |
tagName |
string |
The name of the tag to create a release for.
If the tag does not yet exist, a new tag will be created (using either the HEAD of the default branch or the commit specified in TargetCommitish ).
If the tag already exists, the existing tag will be used and TargetCommitish will be ignored.
|
settings |
GitHubCreateReleaseSettings |
Additional settings for creating the release. |
Return Value