---
title: "Upload-ReleaseAssets"
---
Uploads files as attachments to a GitHub release.
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>]
);
| Name | Format | Script Usage | Usage 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". |