checkout HEAD before attempting second deploy

I think the errors that doctr encounters when pushing the second set of
docs has to do with trying to add to the gh-pages branch when we're
starting from non-HEAD location?

I'm hoping that by manually putting us back onto HEAD that this should
avoid that...

If this does work, it's probably worth putting into doctr itself.

Usually caveats that we can't test this until it's merged...
This commit is contained in:
Gil Forsyth 2016-12-23 18:42:45 -05:00
parent 39f72b9e86
commit 1a6c15b2ce

View file

@ -55,9 +55,9 @@ script:
doctr deploy --deploy-repo xonsh/xonsh-docs --gh-pages-docs dev;
git checkout $(git describe --tags `git rev-list --tags --max-count=1`);
cd docs;
make clean;
make html;
make clean html;
cd ..;
git checkout HEAD;
doctr deploy --deploy-repo xonsh/xonsh-docs --gh-pages-docs .;
else
py.test --timeout=10;