Replies: 1 comment 1 reply
-
|
@jo746 with the CLI unfortunately these kinds of complex arguments are not supported at the moment. Using the API you should be able to just use a dictionary that resembles the JSON structure expected in https://docs.gitlab.com/ee/api/releases/#create-a-release, but even the upstream docs are not very extensive on this. You can check the curl example to get an idea probably. What have you tried using the library approach? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to create a release and upload assets using both the CLI and the library. The assets argument is very unclear and I can't seem to make it work.
I always get a
Impossible to create object (400: assets is invalid)gitlab project-release create --project-id <id> --tag-name <tag> --name <release name> --description <description> --assets <what goes here>same goes for the library
assetsargument. I cannot figure out the format for the files that I want to include.Beta Was this translation helpful? Give feedback.
All reactions