tools/fast: improve uploading to gh pages and print errors

This commit is contained in:
Alexander Medvednikov 2021-08-15 09:03:14 +03:00
parent 3ffa6c1664
commit 1bfb525ce1
2 changed files with 13 additions and 9 deletions

View file

@ -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)
}