-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from marcusholl/pr/deployMkDocs
Deploy mkdocs when merging to master
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/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 |