Fix mkdoc deploy

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-04-07 15:32:20 +02:00
parent 9363e2ab83
commit cf22d62a74
No known key found for this signature in database
GPG key ID: D808B4C167352E59

View file

@ -31,20 +31,22 @@ ghr -t $GITHUB_TOKEN -u containous -r traefik --prerelease ${VERSION} dist/
# update docs.traefik.io # update docs.traefik.io
echo "Generating and updating documentation..." echo "Generating and updating documentation..."
# mkdir site # DOESN'T WORK :'(
# cd site # git remote add ssh git@github.com:containous/traefik.git
# git init # mkdocs gh-deploy -m $VERSION -c -r ssh
# git remote add origin git@github.com:containous/traefik.git
# git fetch origin mkdir site
# git checkout gh-pages cd site
# cd .. git init
# mkdocs build --clean git remote add origin git@github.com:containous/traefik.git
# cd site git fetch origin
# git add . git checkout gh-pages
# echo $VERSION | git commit --file - cd ..
# git push -q -f origin gh-pages > /dev/null 2>&1 mkdocs build --clean
git remote add ssh git@github.com:containous/traefik.git cd site
mkdocs gh-deploy -c -r ssh git add .
echo $VERSION | git commit --file -
git push -q -f origin gh-pages > /dev/null 2>&1
# update traefik-library-image repo (official Docker image) # update traefik-library-image repo (official Docker image)
echo "Updating traefik-library-imag repo..." echo "Updating traefik-library-imag repo..."