ssh-deploy icon indicating copy to clipboard operation
ssh-deploy copied to clipboard

property source can support muti-folder?

Open ibwei opened this issue 5 years ago • 2 comments

env: SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }} ARGS: "-rltgoDzvO --delete" SOURCE: "dist/" REMOTE_HOST: ${{ secrets.REMOTE_HOST }} REMOTE_USER: ${{ secrets.REMOTE_USER }} TARGET: ${{ secrets.REMOTE_TARGET }} I want upload the .nuxt & static & package.json & nuxt.config.js folder or file which is in the root path,so how can i do it?

ibwei avatar Oct 12 '20 10:10 ibwei

Have you tried to create a folder in the environment before deploy?

- name: Create application folder run: mkdir application && cp -r dist application/dist && cp -r package.json application/

So your reference be like SOURCE: "application/"

4lessandrodev avatar Jan 03 '21 00:01 4lessandrodev

Doesn't change the fact that ability to copy multiple things would be neat.

hkmaly avatar Sep 28 '21 18:09 hkmaly

Added support for multiple sources, same as rsync native: Path to src. Can be a single filename, or an array of filenames. Shell wildcard expansion is supported. Examples:

src: "./dist/"
src: ["./dir-a/file1","./dir-b/file2"]
src: "./*.foo"
src: "foo{1,2,3}.txt"
etc.

easingthemes avatar Jan 03 '23 02:01 easingthemes