diff --git a/appveyor.yml b/appveyor.yml index 93d760d3b95a..5a812aac896c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,4 @@ +clone_folder: c:\ps branches: only: - master @@ -7,6 +8,11 @@ environment: secure: VMFbecLLHzDq/09YDPbcM0VDDSwwgY57vr5GXK6cZZ4Ti/Xs5RZoylzV8MMr1350 before_build: + - ps: Install-Module -Name SplitPipeline -Force + - ps: Install-Module -Name platyPS -Force + - ps: Install-Module -Name Azure -Force + - ps: Install-Module -Name AzureRM -Force + - ps: Install-Module -Name AzureStack -Force - ps: Install-Product node $env:nodejs_version - git config --global credential.helper store - ps: ac "$env:USERPROFILE\.git-credentials" "https://$($env:github_access_token):x-oauth-basic@github.com`n" @@ -25,6 +31,6 @@ test: off on_success: - git clone -q --branch=%target_branch% %content_repo% %TEMP%\Azure - cd %TEMP%\Azure - - ps: ls c:\projects\_output -dir | % { copy $_.FullName (ls -dir | select -First 1) -Recurse -Force } + - ps: ls c:\projects\_output -dir | % { copy $_.FullName . -Recurse -Force } - git add -A - git diff --quiet --exit-code --cached || git commit -m "Sync docs from source code repo to content repo." && git push origin %target_branch% && appveyor AddMessage "Content Updated"