Fix publish script to work in Docusaurus itself

This commit is contained in:
Frank Li 2017-08-16 15:12:26 -07:00
parent 999187889e
commit feb2fb41d0

View file

@ -30,7 +30,7 @@ if (CI_PULL_REQUEST || CIRCLE_BRANCH !== `master`) {
shell.exit(0); shell.exit(0);
} }
if (shell.exec("docusaurus-build").code) { if (shell.exec(`node ${__dirname}/build-files.js`).code) {
shell.echo("Error: generating html failed"); shell.echo("Error: generating html failed");
shell.exit(1); shell.exit(1);
} }