mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Moves where the log is placed for clarity
This commit is contained in:
parent
0657078fb0
commit
999988e54b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user