Deploy Production Code for Commit 312d90df3b 🚀

This commit is contained in:
James Ives 2021-05-11 23:19:29 +00:00
parent 312d90df3b
commit 93065a8b71

View File

@ -136,11 +136,7 @@ function deploy(action) {
finally {
// Cleans up temporary files/folders and restores the git state.
core_1.info('Running post deployment cleanup jobs… 🗑️');
if (!action.singleCommit) {
core_1.info(`Resetting branch and removing artifacts…`);
yield execute_1.execute(`git checkout -B ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
yield execute_1.execute(`git branch -D ${action.branch} --force`, action.workspace, action.silent);
}
yield execute_1.execute(`git checkout -B ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
yield execute_1.execute(`git worktree remove ${temporaryDeploymentDirectory} --force`, action.workspace, action.silent);
yield io_1.rmRF(temporaryDeploymentDirectory);
}