From feb2fb41d02f7eb2ba26f7bca81d1f77f0808c9c Mon Sep 17 00:00:00 2001 From: Frank Li Date: Wed, 16 Aug 2017 15:12:26 -0700 Subject: [PATCH] Fix publish script to work in Docusaurus itself --- lib/publish-gh-pages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/publish-gh-pages.js b/lib/publish-gh-pages.js index 435c7ba555..21c0a350bb 100755 --- a/lib/publish-gh-pages.js +++ b/lib/publish-gh-pages.js @@ -30,7 +30,7 @@ if (CI_PULL_REQUEST || CIRCLE_BRANCH !== `master`) { 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.exit(1); }