diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 383b6368d..a155b6834 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,9 +1,7 @@ #!/usr/bin/env bash +sftp --password=$FTP_PASSWORD $FTP_USER@$FTP_HOST:$FTP_DIR for file in /home/travis/build/collinbarrett/FilterLists/src/FilterLists.Api/bin/Release/netcoreapp1.1/* do - if [ "$file" != "appsettings.Production.json" ] && [ "$file" != "appsettings.Development.json" ] - then - echo "Uploading $f" - curl -T ${file} ftp://$FTP_HOST$FTP_DIR${file} --user $FTP_USER:$FTP_PASSWORD - fi + echo "Uploading $file" + put ${file} done