From 3135ab6a27bb2170477bc425e46826d7b4e41754 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 13 Sep 2018 17:04:21 -0700 Subject: attempt at gh-pages branch auto-update --- extra/update_gh-pages.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 extra/update_gh-pages.sh (limited to 'extra/update_gh-pages.sh') 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" -- cgit v1.2.3