]> git.lizzy.rs Git - bit-set.git/blob - deploy-docs.sh
Add serde support
[bit-set.git] / deploy-docs.sh
1 #!/bin/bash
2
3 set -o errexit -o nounset
4
5 rev=$(git rev-parse --short HEAD)
6
7 cd target/doc
8
9 git init
10 git config user.email 'FlashCat@users.noreply.github.com'
11 git config user.name 'FlashCat'
12 git remote add upstream "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git"
13 git fetch upstream gh-pages
14 git reset upstream/gh-pages
15
16 touch .
17
18 git add -A .
19 git commit -m "rebuild pages at ${rev}"
20 git push -q upstream HEAD:gh-pages