Skip to content

Commit be05df1

Browse files
author
earthmant
committed
add version name to new zips
1 parent c2607ad commit be05df1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ecosystem_cicd_tools/release.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,13 @@ def blueprint_release(blueprint_name,
194194
commit)
195195
for blueprint_id, blueprint_path in blueprints.items():
196196
blueprint_archive = package_blueprint(blueprint_id, blueprint_path)
197+
file_wo_ext, ext = path.splitext(blueprint_archive)
198+
new_archive_name = path.basename(
199+
'{file_wo_ext}-{version}{ext}'.format(
200+
file_wo_ext=file_wo_ext, version=version, ext=ext))
197201
version_release.upload_asset(
198202
blueprint_archive,
199-
path.basename(blueprint_archive),
203+
new_archive_name,
200204
'application/zip')
201205
return version_release
202206

0 commit comments

Comments
 (0)