mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools/fast: improve uploading to gh pages and print errors
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user