Summary
Upload local directory files into a file container folder, and create an artifact.
Syntax
public Task UploadArtifact(DirectoryPath path, string artifactName)
Examples
if (GitHubActions.IsRunningOnGitHubActions)
{
await GitHubActions.Commands.UploadArtifact(artifactDirectory, "my-artifact");
}
Parameters
| Name |
Type |
Description |
| path |
DirectoryPath |
Path to the local directory. |
| artifactName |
string |
The artifact name. |
Return Value
| Type |
Description |
| Task |
A Task representing the asynchronous operation. |