mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-08-06 15:32:17 +00:00
Update CI
* Update drone to v1.x * Add GitHub Actions
This commit is contained in:
@@ -6,12 +6,14 @@ if [ $1 = "sh" ];then sh ; exit 0; fi
|
||||
|
||||
rm -rf node_modules _book
|
||||
|
||||
cp -a . ../gitbook
|
||||
srcDir=$PWD
|
||||
|
||||
cd ../gitbook
|
||||
cp -a . /srv/gitbook
|
||||
|
||||
cd /srv/gitbook
|
||||
|
||||
main(){
|
||||
if [ "$1" = build ];then gitbook build; cp -a _book ../gitbook-src; echo $START; date "+%F %T"; exit 0; fi
|
||||
if [ "$1" = build ];then gitbook build; cp -a _book $srcDir; echo $START; date "+%F %T"; exit 0; fi
|
||||
exec gitbook serve
|
||||
exit 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user