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
echo "Generating and updating documentation..."
# mkdir site
# cd site
# git init
# git remote add origin git@github.com:containous/traefik.git
# git fetch origin
# git checkout gh-pages
# cd ..
# mkdocs build --clean
# cd site
# git add .
# echo $VERSION | git commit --file -
# git push -q -f origin gh-pages > /dev/null 2>&1
git remote add ssh git@github.com:containous/traefik.git
mkdocs gh-deploy -c -r ssh
# DOESN'T WORK :'(
# git remote add ssh git@github.com:containous/traefik.git
# mkdocs gh-deploy -m $VERSION -c -r ssh
mkdir site
cd site
git init
git remote add origin git@github.com:containous/traefik.git
git fetch origin
git checkout gh-pages
cd ..
mkdocs build --clean
cd site
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)
echo "Updating traefik-library-imag repo..."