From 5bbced15008b995c5d89161feb1d5f1a36deb031 Mon Sep 17 00:00:00 2001 From: Travis CI Publisher Date: Wed, 26 Sep 2018 10:52:30 +0200 Subject: [PATCH] fix docu deployment --- .travis.yml | 9 +-------- gh-pages-deploy.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 gh-pages-deploy.sh diff --git a/.travis.yml b/.travis.yml index 26c83c5b6..e74523861 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,14 +21,7 @@ script: echo "Found change on master: Deployment of documentation" PRIVATE_KEY="cfg/id_rsa" openssl aes-256-cbc -K $encrypted_12c8071d2874_key -iv $encrypted_12c8071d2874_iv -in cfg/id_rsa.enc -out "${PRIVATE_KEY}" -d - chmod 600 "${PRIVATE_KEY}" - eval `ssh-agent -s` - ssh-add "${PRIVATE_KEY}" - git config user.name "Travis CI Publisher" - git remote add docu "git@github.com:$TRAVIS_REPO_SLUG.git"; - git fetch docu gh-pages:gh-pages - echo "Pushing to gh-pages of repository $TRAVIS_REPO_SLUG" - docker run --rm -it -v ~/.ssh:/root/.ssh -v ${TRAVIS_BUILD_DIR}:/docs -w /docs/documentation squidfunk/mkdocs-material gh-deploy -v --clean --remote-name docu + docker run --rm -it --entrypoint "./gh-pages-deploy.sh" -e "TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG}" -v ${TRAVIS_BUILD_DIR}:/docs -w /docs squidfunk/mkdocs-material else echo "Publishing documentation skipped." fi diff --git a/gh-pages-deploy.sh b/gh-pages-deploy.sh new file mode 100644 index 000000000..ecc6e541d --- /dev/null +++ b/gh-pages-deploy.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +PRIVATE_KEY="cfg/id_rsa" + +chmod 600 "${PRIVATE_KEY}" +eval `ssh-agent -s` +ssh-add "${PRIVATE_KEY}" +git config user.name "Travis CI Publisher" +git remote add docu "git@github.com:$TRAVIS_REPO_SLUG.git"; +git fetch docu gh-pages:gh-pages +echo "Pushing to gh-pages of repository $TRAVIS_REPO_SLUG" +cd documentation +mkdocs gh-deploy -v --clean --remote-name docu