Spotify.NET/SpotifyAPI.Docs/docs.cmd

28 lines
703 B
Batchfile
Raw Permalink Normal View History

2016-08-20 12:20:52 +01:00
if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" (
2016-08-25 20:50:54 +01:00
if "%APPVEYOR_REPO_BRANCH%" == "master" (
echo Building docs...
2017-10-27 16:36:20 +01:00
pip install "mkdocs<=0.16.3"
2016-08-25 19:40:52 +01:00
2016-08-25 20:50:54 +01:00
cd ./SpotifyAPI.Docs
mkdocs build --clean
2016-08-25 19:40:52 +01:00
2016-08-25 20:50:54 +01:00
mkdir deploy
cd deploy
2016-08-25 19:40:52 +01:00
2016-08-25 20:50:54 +01:00
git config --global user.email "johnny@johnnycrazy.de"
git config --global user.name "AppVeyor Doc Generation"
2016-08-25 19:40:52 +01:00
2016-08-25 20:50:54 +01:00
git clone --quiet --branch=gh-pages https://%GH_TOKEN%@github.com/JohnnyCrazy/SpotifyAPI-NET gh-pages
cd gh-pages
git rm -qrf .
xcopy ..\..\site .\ /s /e /y
git add -A
git commit -m "Built docs | AppVeyor Build %APPVEYOR_BUILD_NUMBER%"
git push -fq origin gh-pages
2016-08-25 19:40:52 +01:00
2016-08-25 20:50:54 +01:00
cd ../../../
)
2016-08-20 12:20:52 +01:00
) else (
echo Skipping doc build
)