New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Releasing with Gitlab CI_JOB_TOKEN #1049
Comments
I don't have much experience with GitLab, but I guess the tag must be present in order to create a tag on the remote. Which needs to be pushed first? This is how it works with GitHub: a tag must exist on the remote to create a release. |
The tag can be created alongside the release if a ref is passed along. It doesn't have to exist beforehand. From the documentation:
|
I'm trying to release on Gitlab using only the
CI_JOB_TOKEN
. Since the token does not have the permission to push to the repository, I disabled thegit.push
option. I do not want to create a commit, only a new tag.A new tag can be created using the releases API, but the
release-it
request doesn't set theref
field, which is required when creating a release for a non-existingtag_name
. The error message is:Is there any configuration option/ hook I am missing to set this? I could fall back to using a project/ group access token but would prefer not to.
Config:
Output:
The text was updated successfully, but these errors were encountered: