forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
30 lines (28 loc) · 1.12 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
branches:
only:
- master
environment:
nodejs_version: "6"
github_access_token:
secure: VMFbecLLHzDq/09YDPbcM0VDDSwwgY57vr5GXK6cZZ4Ti/Xs5RZoylzV8MMr1350
before_build:
- ps: Install-Product node $env:nodejs_version
- git config --global credential.helper store
- ps: ac "$env:USERPROFILE\.git-credentials" "https://$($env:github_access_token):[email protected]`n"
- git config --global user.email %email%
- git config --global user.name %name%
- git clone -q https://github.com/MicrosoftDocs/azure-psdocs-ciscripts azpsci
- cd azpsci
- npm install
- npm install typescript
- node ./node_modules/typescript/bin/tsc
- cd ..
build_script:
- node azpsci/out/ci0.js src c:\projects\_output
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 }
- 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"