Fixed upload script

This commit is contained in:
Manuel Cortez 2020-06-29 10:12:14 -05:00
parent e3db177d1a
commit cb084faf85
2 changed files with 2 additions and 6 deletions

View File

@ -68,12 +68,7 @@ alpha32:
- '&$env:PYTHON3_32 scripts/upload.py'
- move socializer_x86_alpha.zip socializer_x86.zip
only:
- schedules
artifacts:
paths:
- socializer_x86.zip
name: socializer_alpha
expire_in: 1 day
- master
# Generates a new stable version of the application every tag.
stable:

View File

@ -44,6 +44,7 @@ print("Uploading files to the Socializer server...")
connection = ftplib.FTP_TLS(ftp_server)
print("Connected to FTP server {}".format(ftp_server,))
connection.login(user=ftp_username, passwd=ftp_password)
connection.prot_p()
print("Logged in successfully")
connection.cwd("socializer.su/static/files/")
if version not in connection.nlst():