Merge dev version of doc-deploy

This commit is contained in:
Griatch 2020-06-13 10:51:17 +02:00
parent 269fc3b1bc
commit 2230900c55

View file

@ -10,6 +10,7 @@ if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
exit 1
fi
# get the deployment branch
git checkout gh-pages
# at this point we should be inside the docs/ folder of the gh-pages branch,
# with the build/ directory available since this is not in git
@ -17,15 +18,22 @@ git checkout gh-pages
# remove all but the build dir
ls -Q | grep -v build | xargs rm -Rf
mv build/html/versions/* .
cp -Rf build/html/versions/* .
# docs/build is in .gitignore so will not be included
git add .
# TODO automate this?
ln -s 1.0-dev latest
git add docs/*
git commit -a -m "Updated HTML docs"
git push origin gh-pages
# get back to previous branch
mv build docs/
echo "Skipping deployment"
# git push origin gh-pages
# get back to previous branch
git checkout -
echo "Deployed to https://evennia.github.io/evennia-docs."