appleboy/scp-action

Option to not leverage tar ?

dynek opened this issue · 1 comments

Hello,

I am looking for an action that allows me to copy a file to a network device with SCP but that device doesn't have tar, it only accept plain SCP/SFTP.

Is there a way to do this with this action ? I wasn't able to find a configuration option allowing to copy files directly to the device without compression, thank you!

use scp of github action ?

name: Deploy via SCP

on: [push]

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout repository
      uses: actions/checkout@v2

    - name: Install SSH Pass
      run: sudo apt-get install sshpass -y

    - name: Copy files via SCP
      env:
        REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
        REMOTE_USER: ${{ secrets.REMOTE_USER }}
        REMOTE_PASSWORD: ${{ secrets.REMOTE_PASSWORD }}
        REMOTE_PATH: ${{ secrets.REMOTE_PATH }}
      run: |
        sshpass -p $REMOTE_PASSWORD scp -o StrictHostKeyChecking=no -r ./path/to/local/files $REMOTE_USER@$REMOTE_HOST:$REMOTE_PATH