From 13064a6184b63ebafda540514391301412407638 Mon Sep 17 00:00:00 2001 From: Christopher Felegy Date: Sun, 21 Jul 2019 21:17:26 -0400 Subject: [PATCH] yes, i am sure --- azure/docs.bat | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure/docs.bat b/azure/docs.bat index cd64a2246..9f3702607 100644 --- a/azure/docs.bat +++ b/azure/docs.bat @@ -1,6 +1,13 @@ +ECHO clone docs-static git clone https://github.com/discord-net/docs-static.git || EXIT /B 1 -RMDIR /S docs-static\latest || EXIT /B 1 + +ECHO remove old 'latest' +ECHO Y | RMDIR /S docs-static\latest || EXIT /B 1 + +ECHO build docs docfx.console/tools/docfx.exe docs/docfx.json -o docs-static/latest/ || EXIT /B 1 + +ECHO commit and deploy 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