mirror of
https://github.com/sebastianpopp/ftp-action.git
synced 2024-12-22 18:59:49 +01:00
13 lines
No EOL
366 B
Bash
Executable file
13 lines
No EOL
366 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
echo "Starting FTP Deploy"
|
|
|
|
echo "Using $INPUT_USER to connect to $INPUT_HOST"
|
|
|
|
echo "Mirroring from $INPUT_LOCALDIR to $INPUT_REMOTEDIR"
|
|
|
|
lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"
|
|
|
|
echo "FTP Deploy Complete" |