diff --git a/src/git.ts b/src/git.ts index 4bf30038f..c7c2b4c79 100644 --- a/src/git.ts +++ b/src/git.ts @@ -166,7 +166,7 @@ export async function deploy(action: ActionInterface): Promise { Allows the user to specify the root if '.' is provided. rsync is used to prevent file duplication. */ await execute( - `rsync -q -av --checksum --progress ${action.folderPath}/. ${ + `rsync -q -av --checksum --progress ${action.targetFolder ? '--mkpath' : ''} ${action.folderPath}/. ${ action.targetFolder ? `${temporaryDeploymentDirectory}/${action.targetFolder}` : temporaryDeploymentDirectory