aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-13 17:04:21 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-13 17:04:21 -0700
commit3135ab6a27bb2170477bc425e46826d7b4e41754 (patch)
tree46a3d6ce0fa277f6029965e08c8f583e2e7f999b
parent084605b75e99ef1c769a2ba9f037f085e4b87575 (diff)
downloadfatcat-3135ab6a27bb2170477bc425e46826d7b4e41754.tar.gz
fatcat-3135ab6a27bb2170477bc425e46826d7b4e41754.zip
attempt at gh-pages branch auto-update
-rw-r--r--extra/update_gh-pages.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/update_gh-pages.sh b/extra/update_gh-pages.sh
new file mode 100644
index 00000000..9f08b8a3
--- /dev/null
+++ b/extra/update_gh-pages.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e -u -o pipefail
+
+cd rust
+cargo doc
+mkdir -p /tmp/fatcat-ghpages
+cp -r release/doc/fatcat release/doc/fatact_api_spec /tmp/fatcat-ghpages
+cd ..
+git checkout gh-pages
+mv /tmp/fatcat-ghpages/* .
+git add -u fatcat fatact_api_spec
+git commit -m "updating rendered manpage for github docs" || true
+git checkout master
+rm -r /tmp/fatcat-ghpages
+
+echo "DONE"