title: Deploying to FTP server in Github Actions does not work
body: <p>As the title says, deploying to FTP server isn't working for me from a Github Action. I've tried using a couple of actions to accomplish this (<a href="https://github.com/marketplace/actions/ftp-deploy" rel="nofollow noreferrer">FTP-Deploy</a> and <a href="https://github.com/marketplace/actions/ftp-action" rel="nofollow noreferrer">ftp-action</a>), but FTP-Deploy just kept running with sporadic</p>
  <blockquote>
  <p>curl: (7) Failed to connect to ftpservername.com port 21: Connection timed out</p>
  </blockquote>
  <p>messages and ftp-action kept running without any output. Note: The server is available, I connected and transferred some files using Filezilla without any issues.</p>
  <p>After that I tried using <a href="https://lftp.yar.ru/" rel="nofollow noreferrer">lftp</a>, this is the command I used on a local Ubuntu machine</p>
  <p><code>lftp -c &quot;open -u username,password ftpservername.com; mirror -R locfolder remote/remotefolder&quot;</code></p>
  <p>and the file transfer worked, but when used in a Github Action it produced this output:</p>
  <blockquote>
  <p>---- Connecting to ftpservername.com (123.456.789.123) port 21</p>
  <p>mkdir `remote/remotefolder' [Connecting...]</p>
  <p>**** Socket error (Connection timed out) - reconnecting</p>
  <p>---- Closing control socket</p>
  <p>---- Connecting to ftpservername.com (123.456.789.123) port 21</p>
  </blockquote>
  <p>I tried setting both <code>ftp:ssl-allow</code> and <code>ssl:verify-certificate</code> to false, but this did not produce any results. Also, I do not have access to the server, so I can't check the server logs.</p>
  <p>This is the workflow file:</p>
  <pre><code>name: Test
  
  on:
    push:
      branches: [master]
  jobs:
    build:
      runs-on: ubuntu-latest
  
      steps:
      - name: Checkout repo
        uses: actions/checkout@v2
    
      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: '3.x'
  
      - name: Install pip
        run: python -m pip install --upgrade pip
  
      - name: Install packages
        run: |
          sudo apt install lftp
          sudo apt install expect
    
      .
      .
      .
      - name: FTP Deploy
        run: |
          echo Starting...
          unbuffer lftp -c &quot;debug; set ftp:ssl-allow false; set ssl:verify-certificate false; open -u username,${{ secrets.PASSWORD }} ftpservername.com; mirror -R -v locfolder remote/remotefolder&quot;
          echo Done transferring files.
  </code></pre>
  <p>Any help is appreciated, thank you!</p>