--- title: "Upload-ReleaseAssets" ---
This is generated from the built in components of BuildMaster 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your BuildMaster instance to see exactly what operations are available.

Uploads files as attachments to a GitHub release.

Script usage:

GitHub::Upload-ReleaseAssets(
	Tag: <text>,
	[Include: <@(text)>],
	[Exclude: <@(text)>],
	[Directory: <text>],
	[ContentType: <text>],
	[From: <text>],
	[UserName: <text>],
	[Password: <text>],
	[Organization: <text>],
	[Repository: <text>],
	[ApiUrl: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Tag
text
Tag
The tag associated with the release. The release must already exist. This argument is required.
Include files
@(text)
Include
See KB#1119 to learn more about masking syntax.
Exclude files
@(text)
Exclude
See KB#1119 to learn more about masking syntax.
From directory
text
Directory
Value note: "$WorkingDirectory".
Content type
text
ContentType
Value note: "detect from file extension".
From GitHub resource
text
From
User name
text
UserName
Not specifying will "Use user name from GitHub resource's credentials".
Password
text
Password
Not specifying will "Use password from GitHub resource's credentials".
Organization name
text
Organization
Not specifying will "Use organization from Github resource".
Repository name
text
Repository
Not specifying will "Use repository from Github resource".
API URL
text
ApiUrl
Use URL from Github resource. Value note: "https://api.github.com".