mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +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('../..');
|
||||
|
||||
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
|
||||
// copy the deployment-branch to be.
|
||||
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');
|
||||
|
||||
const commitMessage =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue