finish register artifacts

This commit is contained in:
Michael Jerger 2023-08-14 18:55:30 +02:00
parent 45884d1032
commit 7aa45910e9

View file

@ -88,12 +88,11 @@ class ReleaseService:
"type": "text/plain", "type": "text/plain",
}] }]
# TODO: use structure created above
for artifact in artifacts_to_attach: for artifact in artifacts_to_attach:
self.artifact_deployment_api.add_asset_to_release( self.artifact_deployment_api.add_asset_to_release(
release.forgejo_release_asset_api_endpoint(release_id), release.forgejo_release_asset_api_endpoint(release_id),
"todo", artifact["path"],
"todo", artifact["type"],
release.release_artifact_token, release.release_artifact_token,
) )