Browse Source

install docfx.console from NuGetCommand

ci/docs
Christopher Felegy 5 years ago
parent
commit
dd39540714
2 changed files with 12 additions and 7 deletions
  1. +7
    -7
      azure/docs.bat
  2. +5
    -0
      azure/docs.yml

+ 7
- 7
azure/docs.bat View File

@@ -1,7 +1,7 @@
nuget install docfx.console
git clone https://github.com/discord-net/docs-static.git
RMDIR /S docs-static/latest
docfx.console/tools/docfx.exe docs/docfx.json -o docs-static/latest/
git -C docs-static add -A
git -C docs-static commit -m "[ci deploy] %date% %time%: %Build.BuildId%"
git -C docs-static push --force
git clone https://github.com/discord-net/docs-static.git || EXIT /B 1
RMDIR /S docs-static/latest || EXIT /B 1
docfx.console/tools/docfx.exe docs/docfx.json -o docs-static/latest/ || EXIT /B 1
git config --global user.name "Discord.Net CI Robot" && git config --global user.email "robot@foxbot.me"
git -C docs-static add -A || EXIT /B 1
git -C docs-static commit -m "[ci deploy] %date% %time%: %Build.BuildId%" || EXIT /B 1
git -C docs-static push --force || EXIT /B 1

+ 5
- 0
azure/docs.yml View File

@@ -5,4 +5,9 @@ steps:
sshPublicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDN1oXiGqKblqfO+vr3cMLSiV6paD5BT+2RXfeCpVkRWSFCB7dfP2m1osJSBqqoCHvJGfbX1brGa+3fnmBgbqQ9vl1NkAmdjHYz4yfTKAt6KShYKXmPpTWBfbAqO2DUzTfTJ18XxNutK931vbWRtOjAMt7Aohw0FYm541QPr2IHIabTvVTPujVExHnMTB9cyKa8xzMD9W3zRLXJbhwOi0LtpgxX6OC/HpwdWod6TfxKdnkPMmVCOo7GTJITyd1GEFg+eNShBIaAZ557nAr8rm2ybEqYvhqFQI0cYMXbfr934yPoNN5yONE1PxDarr1T3GE3ZCWQw2Rc9CAKxrMTez7h
sshKeySecureFile: docs-static_rsa

- task: NuGetCommand@2
inputs:
command: custom
arguments: install docfx.console

- script: azure/docs.bat

Loading…
Cancel
Save