Use GitLab generic packages repository for assets
The GitLab generic packages repository is more suited for storing assets related to releases.
And unlike the current project uploads API, the documentation explicitly states that the CI_JOB_TOKEN has access to the Packages API.
@walkafwalka Thanks for this! I agree that the Generic Package Registry is a better fit. In fact, this is the direction GitLab itself is taking (see https://gitlab.com/gitlab-org/gitlab/-/issues/255271#note_453907441 and https://gitlab.com/gitlab-org/release-cli/-/issues/68).
I would suggest we wait until GitLab has landed on an specific approach and then updating this plugin to mirror its behavior.
I think this has happened now: https://docs.gitlab.com/ee/user/project/releases/#use-a-generic-package-for-attaching-binaries
I have also an error uploading file with size greater than 100Mb:
[semantic-release] [@semantic-release/gitlab] › ✖ An error occurred while uploading /builds/[...]/MyPackage-1.0.0-amd64.deb to the GitLab project uploads API: HTTPError: Response code 413 (Request Entity Too Large)
Can I try to post a PR?
This is now possible, thanks to @JonasSchubert work in #343 🎉