#! /usr/bin/env bash set -o errexit -o nounset if [ -f ~/.bash_tokens ]; then source ~/.bash_tokens fi rev=$(git rev-parse --short HEAD) cd target/doc echo '' > index.html git init git config user.name "Daan van Berkel" git config user.email "daan@fifth-postulate.nl" git remote add upstream "https://$GH_TOKEN@github.com/darwins-challenge/moonlander-gp.git" git fetch upstream git reset upstream/gh-pages touch . touch .nojekyll git add -A . git commit -m "rebuild pages at ${rev}" git push -q upstream HEAD:gh-pages