Browse Source

yes, i am sure

ci/docs
Christopher Felegy 5 years ago
parent
commit
13064a6184
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      azure/docs.bat

+ 8
- 1
azure/docs.bat View File

@@ -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


Loading…
Cancel
Save