diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-22 00:02:59 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-22 00:02:59 +0100 |
commit | 5deb18b72a4993a4baf59b7da24a04116eab31e6 (patch) | |
tree | c7a1523bed9bf7629b311d63e212957a6ae735be /tools/update_docs | |
parent | 34396f0483d94229e3a315e5eeb90c77c1425273 (diff) | |
parent | e8208166c67e564fb249aa41e9f8c5e2fa1f2b9a (diff) | |
download | YAGE-5deb18b72a4993a4baf59b7da24a04116eab31e6.tar.gz YAGE-5deb18b72a4993a4baf59b7da24a04116eab31e6.zip |
Merge branch 'develop'
Diffstat (limited to 'tools/update_docs')
-rwxr-xr-x | tools/update_docs | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/tools/update_docs b/tools/update_docs index 113fe39e..ff998368 100755 --- a/tools/update_docs +++ b/tools/update_docs @@ -1,27 +1,13 @@ #!/usr/bin/env bash -printf "running doxygen on all files in %s: " $( pwd ) doxygen ./docs/Doxyfile >/dev/null 2>&1 -printf "Done\n" -printf "cloning gh-pages from git@github.com:ymherklotz/YAGE: " -git clone -b gh-pages git@github.com:ymherklotz/YAGE >/dev/null 2>&1 -printf "Done\n" -printf "updating repository: " -cd YAGE/ >/dev/null 2>&1 -git rm -rf * >/dev/null 2>&1 -mv ../html/* . >/dev/null 2>&1 -rm -rf ../html >/dev/null 2>&1 -printf "Done\n" -printf "adding files: " +cd html >/dev/null 2>&1 +git init >/dev/null 2>&1 +git config user.name "TravisBot" >/dev/null 2>&1 +git config user.email "" >/dev/null 2>&1 +git remote add upstream "https://$GH_TOKEN@github.com/ymherklotz/YAGE.git" >/dev/null 2>&1 +git fetch upstream >/dev/null 2>&1 +git reset upstream/gh-pages >/dev/null 2>&1 git add -A >/dev/null 2>&1 -printf "Done\n" -printf "commiting files: " -git commit -a -m 'Updating docs' >/dev/null 2>&1 -printf "Done\n" -printf "pushing commit: " -git push origin gh-pages >/dev/null 2>&1 -printf "Done\n" -printf "cleaning up files: " -cd .. >/dev/null 2>&1 -rm -rf YAGE >/dev/null 2>&1 -printf "Done\n" +git commit -m "Rebuilding documentation" >/dev/null 2>&1 +git push -q upstream HEAD:gh-pages >/dev/null 2>&1 |