Created
July 2, 2018 00:26
-
-
Save explorer14/93d7d3ba5642c45e7975b493cdbf205d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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