Skip to content

Add artifacts to an existing release

Actually it's possible to create a new tag and optional create a release (in one step):

image

Currently I am creating a new tag and the release-cli creates a new release for me and attaches my artifacts. Now it can happen that someone creates a tag and release at the same time (to add release notes).

Can the release-cli either create a new release or optionally just attach the assets?

With the following call I would get the following error message:

release-cli create --name $CI_COMMIT_TAG --description "Release $CI_COMMIT_TAG" --ref $CI_COMMIT_TAG --tag-name $CI_COMMIT_TAG --assets-link=$env:assetjson

msg="failed to create release: API Error Response status_code: 409 message: Release already exists"