diff --git a/README.md b/README.md index 5d7082a..8c9893f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ jobs: - name: Deploy FTP uses: sebastianpopp/ftp-action@master with: - host: "ftp.example.com" + host: ${{ secrets.FTP_SERVER }} user: ${{ secrets.FTP_USERNAME }} password: ${{ secrets.FTP_PASSWORD }} localDir: "dist" diff --git a/entrypoint.sh b/entrypoint.sh index f1b60df..7c1b429 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,4 +2,4 @@ set -e -lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror -R $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit" +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"