Merge dev version of doc-deploy
This commit is contained in:
parent
269fc3b1bc
commit
2230900c55
1 changed files with 11 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# get the deployment branch
|
||||||
git checkout gh-pages
|
git checkout gh-pages
|
||||||
# at this point we should be inside the docs/ folder of the gh-pages branch,
|
# 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
|
# 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
|
# remove all but the build dir
|
||||||
ls -Q | grep -v build | xargs rm -Rf
|
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
|
# docs/build is in .gitignore so will not be included
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
|
# TODO automate this?
|
||||||
|
ln -s 1.0-dev latest
|
||||||
|
|
||||||
|
git add docs/*
|
||||||
git commit -a -m "Updated HTML 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 -
|
git checkout -
|
||||||
|
|
||||||
echo "Deployed to https://evennia.github.io/evennia-docs."
|
echo "Deployed to https://evennia.github.io/evennia-docs."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue