milanmk / actions-file-deployer

Composite GitHub Action (Linux runner) for deploying repository content to remote server. Fast and customizable deployment with proxy support. Deploy only changed files or do full sync/mirror of repository content.
The Unlicense
62 stars 14 forks source link

Specifying local-path includes directory structure on upload #10

Closed cjboco closed 2 years ago

cjboco commented 2 years ago

If I specify "local-path" as something other that ".", say "./src", it will copy the "src" folder along with the changed file to the remote path.

Example .yml:

remote-path/wp-content/themes/my-theme local-path ./src

then if I change a file and push, say: sample.php

on upload, I will see:

index.php about.php src/

desired effect:

index.php about.php sample.php

Not sure if it's a bug or a feature not implemented. But makes it difficult when remote and local directories don't match.

milanmk commented 2 years ago

File deployments are usually done on similar local and remote path and this action is built based on those requirements. I don't think this action can handle non matching local and remote path.

cjboco commented 2 years ago

Ah.. okay. I just thought I was doing something wrong or perhaps an issue. Thanks!