mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
tools/fast: improve uploading to gh pages and print errors
This commit is contained in:
parent
3ffa6c1664
commit
1bfb525ce1
2 changed files with 13 additions and 9 deletions
|
@ -30,13 +30,7 @@ fn main() {
|
|||
}
|
||||
if resp.exit_code != 0 {
|
||||
println('resp != 0, skipping')
|
||||
} else {
|
||||
os.chdir('website')
|
||||
os.execute_or_exit('git checkout gh-pages')
|
||||
os.cp('../index.html', 'index.html') ?
|
||||
os.system('git commit -am "update benchmark"')
|
||||
os.system('git push origin gh-pages')
|
||||
os.chdir('..')
|
||||
println(resp.output)
|
||||
}
|
||||
time.sleep(180 * time.second)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue