diff --git a/build.py b/build.py index a1fddfb..c0377b4 100644 --- a/build.py +++ b/build.py @@ -176,6 +176,7 @@ def prepare(project): def tag(project): build = get_devops_build(project) build.tag_bump_and_push_release() + #TODO: build.publish_artifacts() def release(project): diff --git a/src/main/python/ddadevops/application/release_mixin_services.py b/src/main/python/ddadevops/application/release_mixin_services.py index c9ab06e..f686c3f 100644 --- a/src/main/python/ddadevops/application/release_mixin_services.py +++ b/src/main/python/ddadevops/application/release_mixin_services.py @@ -53,6 +53,12 @@ class ReleaseService: ) self.git_api.push_follow_tags() + def publish_artifacts(self, release: Release): + # calculate checksum + # create release + # add artifacts to release + pass + def __set_version_and_commit__( self, version: Version, build_file_ids: List[str], message: str ): diff --git a/src/main/python/ddadevops/release_mixin.py b/src/main/python/ddadevops/release_mixin.py index 3d7defd..5ece524 100644 --- a/src/main/python/ddadevops/release_mixin.py +++ b/src/main/python/ddadevops/release_mixin.py @@ -26,3 +26,8 @@ class ReleaseMixin(DevopsBuild): devops = self.devops_repo.get_devops(self.project) release = devops.mixins[MixinType.RELEASE] self.release_service.tag_bump_and_push_release(release) + + def publish_artifacts(self): + devops = self.devops_repo.get_devops(self.project) + release = devops.mixins[MixinType.RELEASE] + self.release_service.publish_artifacts(release)