mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 22:32:35 +00:00
22 lines
417 B
Bash
22 lines
417 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -o errexit -o nounset
|
||
|
|
||
|
rev=$(git rev-parse --short HEAD)
|
||
|
|
||
|
cd book-example/book
|
||
|
|
||
|
git init
|
||
|
git config user.name "Mathieu David"
|
||
|
git config user.email "mathieudavid@mathieudavid.org"
|
||
|
|
||
|
git remote add upstream "https://$GH_TOKEN@github.com/azerupi/mdBook.git"
|
||
|
git fetch upstream
|
||
|
git reset upstream/gh-pages
|
||
|
|
||
|
touch .
|
||
|
|
||
|
git add -A .
|
||
|
git commit -m "rebuild pages at ${rev}"
|
||
|
git push -q upstream HEAD:gh-pages
|