diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2018-07-23 02:09:18 +0300 |
---|---|---|
committer | Oleg Morozenkov <m@oleg.rocks> | 2018-07-23 02:09:19 +0300 |
commit | f13b7029e9af43282ebe6c2e9bb4dd749c8e450a (patch) | |
tree | 825b8527e09b15bf5f99a4276143c964cf3efa02 /tools | |
parent | d47ee877be5d1175bdc36f2d87881ddaf875a8e9 (diff) |
Move docs to gh-pages branch
Diffstat (limited to 'tools')
-rw-r--r-- | tools/push-ghpages | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/push-ghpages b/tools/push-ghpages new file mode 100644 index 0000000..91f606a --- /dev/null +++ b/tools/push-ghpages @@ -0,0 +1,12 @@ +#!/bin/bash +set -e -o pipefail + +./generate-docs +git checkout gh-pages +find . -maxdepth 1 -not -name "docs" -not -name ".git" -print0 | xargs -0 rm -r +mv docs/* . +mv docs/.nojekyll . +rmdir docs +git add -A +git commit -m "Updated docs $(date)" +git push origin gh-pages |