Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Task("Azure-WebDeploy")
.IsDependentOn("Get-PublishProfiles")
.Does(async () =>
{
Information($"Deploying {lrrAppName}...");
IKuduClient kuduClientForLrr = KuduClient(
$"https://{lrrAppName}.scm.azurewebsites.net/",
"$"+lrrAppName,
await PasswordFor(lrrAppName.ToLower()));
DirectoryPath sourceDirectoryPath = $"./artifacts/{lrrAppName}";
DirectoryPath remoteDirectoryPath = $"/site/wwwroot/app_data/jobs/continuous/{lrrAppName}";
kuduClientForLrr.ZipUploadDirectory(
sourceDirectoryPath,
remoteDirectoryPath);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment