23 строки
834 B
YAML
23 строки
834 B
YAML
environment:
|
|
access_token:
|
|
secure: JWSy9tPo2eoTYpPQplvokf4IiVk6onNBbWwAs6nNWWyQ2JaO+MRAg/QzbJnTjpUm
|
|
|
|
before_build:
|
|
- cd ..
|
|
- git config --global credential.helper store
|
|
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
|
|
- git config --global user.email "vscopbld@microsoft.com"
|
|
- git config --global user.name "OpenPublishBuild"
|
|
- git clone "https://github.com/Azure/azure-docs-sdk-java.git" "docs"
|
|
|
|
build_script:
|
|
- ps: docs\Scripts\build.ps1
|
|
|
|
on_success:
|
|
- cd docs
|
|
- git add .
|
|
- git diff --quiet --exit-code --cached || git commit -m "CI Updates" && git push -u origin master
|
|
#on_finish:
|
|
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
|