Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created July 2, 2018 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save explorer14/93d7d3ba5642c45e7975b493cdbf205d to your computer and use it in GitHub Desktop.
Save explorer14/93d7d3ba5642c45e7975b493cdbf205d to your computer and use it in GitHub Desktop.
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