mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
16 lines
448 B
Bash
16 lines
448 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
echo "Found change on master: Deployment of documentation"
|
||
|
|
||
|
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 $TRAVIS_BUILD_DIR/documentation
|
||
|
mkdocs gh-deploy -v --clean --remote-name docu
|