mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 00:57:53 +02:00
fix(v2): fix deploy script
This commit is contained in:
parent
d097f73285
commit
1d133e7169
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ module.exports = async function deploy(siteDir) {
|
||||||
shell.cd('../..');
|
shell.cd('../..');
|
||||||
|
|
||||||
const fromPath = path.join('build');
|
const fromPath = path.join('build');
|
||||||
const toPath = path.join('build', `${projectName}-${deploymentBranch}}`);
|
const toPath = path.join('temp', `${projectName}-${deploymentBranch}`);
|
||||||
// In github.io case, project is deployed to root. Need to not recursively
|
// In github.io case, project is deployed to root. Need to not recursively
|
||||||
// copy the deployment-branch to be.
|
// copy the deployment-branch to be.
|
||||||
const excludePath = `${projectName}-${deploymentBranch}`;
|
const excludePath = `${projectName}-${deploymentBranch}`;
|
||||||
|
@ -156,7 +156,7 @@ module.exports = async function deploy(siteDir) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
shell.cd(path.join('build', `${projectName}-${deploymentBranch}`));
|
shell.cd(toPath);
|
||||||
shell.exec('git add --all');
|
shell.exec('git add --all');
|
||||||
|
|
||||||
const commitMessage =
|
const commitMessage =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue