Updated ghpublish
This commit is contained in:
parent
7f2c6b1b6d
commit
cddb6d8ffc
1 changed files with 5 additions and 1 deletions
|
@ -22,12 +22,16 @@ git co gh-pages
|
|||
(( $? == 0 )) || { exit 1 }
|
||||
git co master output
|
||||
(( $? == 0 )) || { exit 1 }
|
||||
git unstage output
|
||||
(( $? == 0 )) || { exit 1 }
|
||||
mv output/index.html .
|
||||
(( $? == 0 )) || { exit 1 }
|
||||
mv output/n3blog/* .
|
||||
(( $? == 0 )) || { exit 1 }
|
||||
\rm -rf output
|
||||
git add .
|
||||
cp en/error/404-not_found/index.html 404.html
|
||||
(( $? == 0 )) || { exit 1 }
|
||||
git commit -m 'updated website'
|
||||
(( $? == 0 )) || { exit 1 }
|
||||
# git push
|
||||
git push
|
||||
|
|
Loading…
Reference in a new issue