mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
improve deploy script
This commit is contained in:
parent
056373b467
commit
0522307833
1 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ You can also set the deploymentBranch property in docusaurus.config.js .`);
|
|||
const toPath = await fs.mkdtemp(
|
||||
path.join(os.tmpdir(), `${projectName}-${deploymentBranch}`),
|
||||
);
|
||||
exec(`cd ${toPath}`, {failfast: true});
|
||||
process.chdir(toPath);
|
||||
|
||||
// Clones the repo into the temp folder and checks out the target branch.
|
||||
// If the branch doesn't exist, it creates a new one based on the
|
||||
|
@ -248,7 +248,7 @@ You can also set the deploymentBranch property in docusaurus.config.js .`);
|
|||
logger.error`Copying build assets from path=${fromPath} to path=${targetPath} failed.`;
|
||||
throw err;
|
||||
}
|
||||
exec('git add --all');
|
||||
exec('git add --all', {failfast: true});
|
||||
|
||||
const gitUserName = process.env.GIT_USER_NAME;
|
||||
if (gitUserName) {
|
||||
|
|
Loading…
Add table
Reference in a new issue