appleboy / scp-action

GitHub Action that copy files and artifacts via SSH.
https://github.com/marketplace/actions/scp-command-to-transfer-files
MIT License
1.14k stars 134 forks source link

Source folder created at target #133

Open cyberience opened 11 months ago

cyberience commented 11 months ago

In the following example, the ./html folder is created at target, and doesnt matter how I structure it, including placing a / on the end of target. still creates the html folder,

    # Copying files and artifacts via SSH
    - name: Copying files to server www
      uses: appleboy/scp-action@master
      with:
        host: ${{ secrets.REMOTE_HOST }}
        username: ${{ secrets.REMOTE_USER }}
        key: ${{ secrets.SSH_PRIVATE_KEY }}
        rm: false
        source: "./html/*,!.git*,!README.md"
        target: "${{ vars.REMOTE_TARGET }}"

Any solution or flag to change this behaviour?

filippo-mancinelli commented 10 months ago

i found this closed isse with the solution: #128 it worked for me