mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 07:20:20 +08:00
b7cf3dc523
Sigh. 😭
22 lines
397 B
Bash
22 lines
397 B
Bash
#!/bin/bash
|
|
|
|
set -o errexit -o nounset
|
|
|
|
rev=$(git rev-parse --short HEAD)
|
|
|
|
cd book
|
|
|
|
git init
|
|
git config user.name "Steve Klabnik"
|
|
git config user.email "steve@steveklabnik.com"
|
|
|
|
git remote add upstream "https://$GH_TOKEN@github.com/rust-lang/book.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
|