dcloud git releases create

Create a release (and its tag, when new)

IAM git:CreateReleaseChanges state

A new tag is created at `target` (default branch when absent) and needs git:PushRepository too. A non-draft release fires `release` with created, published and released (or prereleased); a draft only created. Answers the release and `runIds` of the workflows it started.

Synopsis

dcloud git releases create repoId --tag-name tagName [flags]

Arguments

  • <repoId>Required

    string

    Also accepted as --repo-id. Constraints: uuid

Flags

  • --tag-nameRequired

    string

    The tag; created at `target` when it does not exist

    Constraints: 1-255 chars

  • --targetOptional

    string

    Branch or commit for a new tag; the default branch when absent

    Constraints: 1-255 chars

  • --nameOptional

    string

    Title; the tag name when absent

    Constraints: max 255 chars

  • --bodyOptional

    string

    Release notes (Markdown)

    Constraints: max 125000 chars

  • --draftOptional

    boolean (--draft / --no-draft)

    A draft fires only `created`; publish it later

  • --prereleaseOptional

    boolean (--prerelease / --no-prerelease)

    Mark it a pre-release (fires `prereleased` instead of `released`); false when absent

Example

dcloud git releases create repoId --tag-name example

Generated from the API description, the same one the API checks requests against and the CLI is built from.