mirror of
https://github.com/vlang/v.git
synced 2025-09-12 17:07:11 -04:00
tools: make fast.v more robust to independent remote changes in vlang/docs
This commit is contained in:
parent
d66de0c514
commit
a9247372f7
@ -175,22 +175,24 @@ fn main() {
|
|||||||
lexec('git checkout gh-pages')
|
lexec('git checkout gh-pages')
|
||||||
os.mv('../index.html', 'index.html')!
|
os.mv('../index.html', 'index.html')!
|
||||||
elog(' adding changes...')
|
elog(' adding changes...')
|
||||||
lsystem('git commit -am "update fast.vlang.io for commit ${commit}"')
|
lexec('git commit -am "update fast.vlang.io for commit ${commit}"')
|
||||||
elog(' pushing...')
|
elog(' pushing...')
|
||||||
lsystem('git push origin gh-pages')
|
lexec('git push origin gh-pages')
|
||||||
elog(' uploading to fast.vlang.io/ done')
|
elog(' uploading to fast.vlang.io/ done')
|
||||||
os.chdir(fast_dir)!
|
os.chdir(fast_dir)!
|
||||||
|
|
||||||
os.chdir('${fast_dir}/docs.vlang.io/')!
|
os.chdir('${fast_dir}/docs.vlang.io/')!
|
||||||
elog('Uploading to docs.vlang.io/ ...')
|
elog('Uploading to docs.vlang.io/ ...')
|
||||||
|
elog(' pulling upstream changes...')
|
||||||
|
lexec('git pull')
|
||||||
elog(' running build.vsh...')
|
elog(' running build.vsh...')
|
||||||
lexec('${vdir}/vprod run build.vsh')
|
lexec('${vdir}/vprod run build.vsh')
|
||||||
elog(' adding changes...')
|
elog(' adding new docs...')
|
||||||
lsystem('git add .')
|
lexec('git add .')
|
||||||
elog(' commiting...')
|
elog(' commiting...')
|
||||||
lsystem('git commit -am "update docs for commit ${commit}"')
|
lexec('git commit -am "update docs for commit ${commit}"')
|
||||||
elog(' pushing...')
|
elog(' pushing...')
|
||||||
lsystem('git push')
|
lexec('git push')
|
||||||
elog(' uploading to fast.vlang.io/ done')
|
elog(' uploading to fast.vlang.io/ done')
|
||||||
os.chdir(fast_dir)!
|
os.chdir(fast_dir)!
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user