lean4-htt/script/deploy_gh_pages.sh
Sebastian Ullrich e24735571a chore(.appveyor.yml,.travis.yml): use daily cron job for nightlies instead of first commit of the day
This makes sure the latest commit will always be included in a nightly after at
most 24 hours
2018-03-20 15:14:45 -07:00

20 lines
566 B
Bash

#!/bin/bash
# LEGACY binary in gh-pages branch. Remove when test scripts are changed to use versioned nightlies.
# 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