mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Deploy Production Code for Commit 312d90df3b
🚀
This commit is contained in:
parent
312d90df3b
commit
93065a8b71
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user