release: Update the `doc/latest` symlink

pull/4792/head
Richard Hansen 2021-02-16 01:25:33 -05:00 committed by John McLear
parent 345f5227fd
commit 72704a9fbd
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ try {
run('git pull --ff-only', {cwd: '../ether.github.com/'}); run('git pull --ff-only', {cwd: '../ether.github.com/'});
console.log('Committing documentation...'); console.log('Committing documentation...');
run(`cp -R out/doc/ ../ether.github.com/doc/v'${newVersion}'`); run(`cp -R out/doc/ ../ether.github.com/doc/v'${newVersion}'`);
run(`rm -f latest && ln -s 'v${newVersion}' latest`, {cwd: '../ether.github.com/doc/'});
run('git add .', {cwd: '../ether.github.com/'}); run('git add .', {cwd: '../ether.github.com/'});
run(`git commit -m '${newVersion} docs'`, {cwd: '../ether.github.com/'}); run(`git commit -m '${newVersion} docs'`, {cwd: '../ether.github.com/'});
} catch (err) { } catch (err) {