From a9247372f79ae67a7c94ec39affd07d62684119c Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 26 Apr 2024 17:20:55 +0300 Subject: [PATCH] tools: make fast.v more robust to independent remote changes in vlang/docs --- cmd/tools/fast/fast.v | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cmd/tools/fast/fast.v b/cmd/tools/fast/fast.v index 0d299cad25..485b05a351 100644 --- a/cmd/tools/fast/fast.v +++ b/cmd/tools/fast/fast.v @@ -175,22 +175,24 @@ fn main() { lexec('git checkout gh-pages') os.mv('../index.html', 'index.html')! 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...') - lsystem('git push origin gh-pages') + lexec('git push origin gh-pages') elog(' uploading to fast.vlang.io/ done') os.chdir(fast_dir)! os.chdir('${fast_dir}/docs.vlang.io/')! elog('Uploading to docs.vlang.io/ ...') + elog(' pulling upstream changes...') + lexec('git pull') elog(' running build.vsh...') lexec('${vdir}/vprod run build.vsh') - elog(' adding changes...') - lsystem('git add .') + elog(' adding new docs...') + lexec('git add .') elog(' commiting...') - lsystem('git commit -am "update docs for commit ${commit}"') + lexec('git commit -am "update docs for commit ${commit}"') elog(' pushing...') - lsystem('git push') + lexec('git push') elog(' uploading to fast.vlang.io/ done') os.chdir(fast_dir)! }