File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,18 +60,12 @@ def get_published_vesions():
6060
6161
6262def publish ():
63- available_versions = get_available_versions ()
63+ latest_version = get_available_versions ()[ 0 ]
6464 published_versions = get_published_vesions ()
6565
66- print ("Available versions: " + str (available_versions ))
67- print ("Published versions: " + str (published_versions ))
68-
69- versions_to_publish = set (available_versions ) - set (published_versions )
70- print (versions_to_publish )
71-
72- for version in versions_to_publish :
73- print ("Publishing version " + version )
74- download_openapi_generator_jar (version )
66+ if latest_version not in published_versions :
67+ print ("Publishing version " + latest_version )
68+ download_openapi_generator_jar (latest_version )
7569 subprocess .check_call ("python setup.py upload" , shell = True )
7670
7771
You can’t perform that action at this time.
0 commit comments