Fixed upload script
This commit is contained in:
parent
e3db177d1a
commit
cb084faf85
@ -68,12 +68,7 @@ alpha32:
|
|||||||
- '&$env:PYTHON3_32 scripts/upload.py'
|
- '&$env:PYTHON3_32 scripts/upload.py'
|
||||||
- move socializer_x86_alpha.zip socializer_x86.zip
|
- move socializer_x86_alpha.zip socializer_x86.zip
|
||||||
only:
|
only:
|
||||||
- schedules
|
- master
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- socializer_x86.zip
|
|
||||||
name: socializer_alpha
|
|
||||||
expire_in: 1 day
|
|
||||||
|
|
||||||
# Generates a new stable version of the application every tag.
|
# Generates a new stable version of the application every tag.
|
||||||
stable:
|
stable:
|
||||||
|
@ -44,6 +44,7 @@ print("Uploading files to the Socializer server...")
|
|||||||
connection = ftplib.FTP_TLS(ftp_server)
|
connection = ftplib.FTP_TLS(ftp_server)
|
||||||
print("Connected to FTP server {}".format(ftp_server,))
|
print("Connected to FTP server {}".format(ftp_server,))
|
||||||
connection.login(user=ftp_username, passwd=ftp_password)
|
connection.login(user=ftp_username, passwd=ftp_password)
|
||||||
|
connection.prot_p()
|
||||||
print("Logged in successfully")
|
print("Logged in successfully")
|
||||||
connection.cwd("socializer.su/static/files/")
|
connection.cwd("socializer.su/static/files/")
|
||||||
if version not in connection.nlst():
|
if version not in connection.nlst():
|
||||||
|
Loading…
Reference in New Issue
Block a user