mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-22 23:10:20 +08:00
Update deploy.sh
This commit is contained in:
parent
b096b7dff2
commit
9fb27e0051
17
deploy.sh
17
deploy.sh
@ -19,3 +19,20 @@ touch .
|
|||||||
git add -A .
|
git add -A .
|
||||||
git commit -m "rebuild pages at ${rev}"
|
git commit -m "rebuild pages at ${rev}"
|
||||||
git push -q upstream HEAD:gh-pages > /dev/null 2>&1
|
git push -q upstream HEAD:gh-pages > /dev/null 2>&1
|
||||||
|
|
||||||
|
|
||||||
|
cd ../english/book
|
||||||
|
|
||||||
|
git init
|
||||||
|
git config user.name "Aaran Xu"
|
||||||
|
git config user.email "aaranxu@outlook.com"
|
||||||
|
|
||||||
|
git remote add upstream "git@github.com:rust-lang-cn/book-cn.git"
|
||||||
|
git fetch upstream
|
||||||
|
git reset upstream/gh-pages-en
|
||||||
|
|
||||||
|
touch .
|
||||||
|
|
||||||
|
git add -A .
|
||||||
|
git commit -m "rebuild English pages at ${rev}"
|
||||||
|
git push -q upstream HEAD:gh-pages-en > /dev/null 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user