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 { finally {
// Cleans up temporary files/folders and restores the git state. // Cleans up temporary files/folders and restores the git state.
core_1.info('Running post deployment cleanup jobs… 🗑️'); core_1.info('Running post deployment cleanup jobs… 🗑️');
if (!action.singleCommit) { yield execute_1.execute(`git checkout -B ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
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 worktree remove ${temporaryDeploymentDirectory} --force`, action.workspace, action.silent); yield execute_1.execute(`git worktree remove ${temporaryDeploymentDirectory} --force`, action.workspace, action.silent);
yield io_1.rmRF(temporaryDeploymentDirectory); yield io_1.rmRF(temporaryDeploymentDirectory);
} }