Compare commits

..

No commits in common. "master" and "v2.0.0" have entirely different histories.

3 changed files with 1 additions and 7 deletions

View file

@ -21,7 +21,6 @@ jobs:
password: ${{ secrets.FTP_PASSWORD }} password: ${{ secrets.FTP_PASSWORD }}
localDir: "dist" localDir: "dist"
remoteDir: "www" remoteDir: "www"
options: "--delete --asci"
``` ```
## Input parameters ## Input parameters
@ -34,4 +33,3 @@ password | FTP password | Yes | N/A
localDir | The local directory to copy | No | . localDir | The local directory to copy | No | .
remoteDir | The remote directory to copy to | No | . remoteDir | The remote directory to copy to | No | .
forceSsl | Force SSL encryption | No | false forceSsl | Force SSL encryption | No | false
options | Mirror command options | No | ''

View file

@ -23,10 +23,6 @@ inputs:
description: 'Remote directory' description: 'Remote directory'
required: false required: false
default: '.' default: '.'
options:
description: 'Additional mirror command options'
required: false
default: ''
runs: runs:
using: 'docker' using: 'docker'
image: 'Dockerfile' image: 'Dockerfile'

View file

@ -1,3 +1,3 @@
#!/bin/sh -l #!/bin/sh -l
lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ftp:ssl-force $INPUT_FORCESSL; set ssl:verify-certificate false; mirror $INPUT_OPTIONS --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit" lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ftp:ssl-force $INPUT_FORCESSL; set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"