Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from mdboom/plugin-package
Browse files Browse the repository at this point in the history
Handle publishing of glean-gradle-plugin
  • Loading branch information
Mihai Tabara committed Nov 18, 2019
2 parents df8117b + d0389dc commit 05459a7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions script.py
Expand Up @@ -14,15 +14,23 @@
)


GLEAN_PACKAGES = [
'glean',
'glean-forUnitTests',
'glean-gradle-plugin'
]


async def move_beets(context):
"""TODO"""
uploads = []
for file, local_path in context.extracted_files.items():
# TODO: to fix via regex etraction here
if 'forUnitTests' in file:
destination = f"maven2/org/mozilla/telemetry/glean-forUnitTests/{context.version}/{file}"
for package_name in GLEAN_PACKAGES:
if file.startswith(f"{package_name}-{context.version}"):
destination = f"maven2/org/mozilla/telemetry/{package_name}/{context.version}/{file}"
break
else:
destination = f"maven2/org/mozilla/telemetry/glean/{context.version}/{file}"
continue

uploads.append(
asyncio.ensure_future(
Expand Down

0 comments on commit 05459a7

Please sign in to comment.