lean4-htt/script/deploy_gh_pages.sh
2017-07-27 10:23:16 +02:00

20 lines
466 B
Bash

#!/bin/bash
# inspired by https://github.com/steveklabnik/automatically_update_github_pages_with_travis_example
set -eu
rev=$(git rev-parse --short HEAD)
git clone -b gh-pages "https://$GH_TOKEN@github.com/leanprover/lean-nightly.git" gh-pages
cd gh-pages
mkdir -p build
ln -f ../build/lean-* build/
git config user.name "Bot Botson"
git config user.email "bot@bot.bot"
git add -A .
git commit --amend --reset-author -m "nightly build at ${rev}"
git push -fq