parent
af7aac1007
commit
612f1f7579
|
@ -51,6 +51,7 @@ export async function setRepo(inps: Inputs, remoteURL: string, workDir: string):
|
||||||
await createBranchForce(inps.PublishBranch);
|
await createBranchForce(inps.PublishBranch);
|
||||||
process.chdir(destDir);
|
process.chdir(destDir);
|
||||||
await copyAssets(publishDir, destDir);
|
await copyAssets(publishDir, destDir);
|
||||||
|
process.chdir(workDir);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,6 +94,7 @@ export async function setRepo(inps: Inputs, remoteURL: string, workDir: string):
|
||||||
}
|
}
|
||||||
|
|
||||||
await copyAssets(publishDir, destDir);
|
await copyAssets(publishDir, destDir);
|
||||||
|
process.chdir(workDir);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Failed to clone remote branch ${inps.PublishBranch}`);
|
throw new Error(`Failed to clone remote branch ${inps.PublishBranch}`);
|
||||||
|
@ -104,6 +106,7 @@ export async function setRepo(inps: Inputs, remoteURL: string, workDir: string):
|
||||||
process.chdir(workDir);
|
process.chdir(workDir);
|
||||||
await createBranchForce(inps.PublishBranch);
|
await createBranchForce(inps.PublishBranch);
|
||||||
await copyAssets(publishDir, destDir);
|
await copyAssets(publishDir, destDir);
|
||||||
|
process.chdir(workDir);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue