From cf22d62a743131b71e2c091a7072c3a44a25c266 Mon Sep 17 00:00:00 2001 From: Emile Vauge Date: Thu, 7 Apr 2016 15:32:20 +0200 Subject: [PATCH] Fix mkdoc deploy Signed-off-by: Emile Vauge --- script/deploy.sh | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/script/deploy.sh b/script/deploy.sh index 16ebd6b97..e53ea2768 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -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..."