From dd3954071433a1c10f42e8510bb7961d20a089d1 Mon Sep 17 00:00:00 2001 From: Christopher Felegy Date: Sun, 21 Jul 2019 21:09:35 -0400 Subject: [PATCH] install docfx.console from NuGetCommand --- azure/docs.bat | 14 +++++++------- azure/docs.yml | 5 +++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/azure/docs.bat b/azure/docs.bat index a99e102a2..35483b71e 100644 --- a/azure/docs.bat +++ b/azure/docs.bat @@ -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 diff --git a/azure/docs.yml b/azure/docs.yml index 9f2e99a52..af1aaf552 100644 --- a/azure/docs.yml +++ b/azure/docs.yml @@ -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