Moves where the log is placed for clarity

This commit is contained in:
James Ives 2020-05-24 11:18:06 -04:00
parent 0657078fb0
commit 999988e54b

View File

@ -202,9 +202,6 @@ export async function deploy(action: ActionInterface): Promise<Status> {
info(`Changes committed to the ${action.branch} branch… 📦`)
// Cleans up temporary files/folders and restores the git state.
info('Running post deployment cleanup jobs…')
if (action.singleCommit) {
await execute(`git fetch ${action.repositoryPath}`, action.workspace)
await execute(
@ -245,7 +242,8 @@ export async function deploy(action: ActionInterface): Promise<Status> {
)} `
)
} finally {
// Ensures the deployment directory is safely removed after each deployment.
// Cleans up temporary files/folders and restores the git state.
info('Running post deployment cleanup jobs… 🗑️')
await execute(
`git worktree remove ${temporaryDeploymentDirectory}`,
action.workspace