tweak deploy.sh

This commit is contained in:
Collin M. Barrett 2017-04-15 12:36:39 -05:00 committed by GitHub
parent d3803f8766
commit e61336bfcc

View file

@ -1,5 +1,8 @@
#!/usr/bin/env bash
for file in /home/travis/build/collinbarrett/FilterLists/src/FilterLists.Api/bin/Release/netcoreapp1.1/*
do
curl -T ${file} sftp://$FTP_HOST$FTP_DIR${file} --user $FTP_USER:$FTP_PASSWORD
done
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
done