Skip to content

Commit

Permalink
Deploy Production Code for Commit 312d90d 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed May 11, 2021
1 parent 312d90d commit 93065a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 93065a8

Please sign in to comment.