Debugging

This commit is contained in:
James Ives 2019-11-10 15:42:45 -05:00
parent 1a1a0a806f
commit ffe5168337
2 changed files with 6 additions and 4 deletions

View File

@ -87,7 +87,9 @@ function deploy() {
console.log("Deployment branch does not exist. Creating....");
yield generateBranch();
}
console.log('list', yield util_1.execute(`ls`, constants_1.action.build));
// Checks out the base branch to begin the deployment process.
yield util_1.execute(`git checkout ${constants_1.action.baseBranch || "master"} ---`, constants_1.workspace);
yield util_1.execute(`git fetch origin`, constants_1.workspace);
yield util_1.execute(`git worktree add --checkout ${temporaryDeploymentDirectory} origin/${constants_1.action.branch}`, constants_1.workspace);
/*
Pushes all of the build files into the deployment directory.

View File

@ -75,9 +75,9 @@ export async function deploy(): Promise<any> {
await generateBranch();
}
console.log('list', await execute(`ls`, action.build))
// Checks out the base branch to begin the deployment process.
await execute(`git checkout ${action.baseBranch || "master"} ---`, workspace);
await execute(`git fetch origin`, workspace);
await execute(
`git worktree add --checkout ${temporaryDeploymentDirectory} origin/${action.branch}`,
workspace