gh release

Publish a release and list releases

What it does

gh release create v1.2.0 creates a release on GitHub. If the tag does not exist yet, GitHub puts it on the latest commit of the default branch. --generate-notes builds the notes from the pull requests since the last release, --notes sets the text by hand, and --draft saves a draft.

Files listed after the tag are attached to the release: gh release create v1.2.0 dist/app.zip. gh release list lists releases, and gh release download <tag> downloads their files.

Syntax

gh release create <tag> --generate-notes
gh release create <tag> <file>…
gh release list

Examples

Related commands

Practise · All commands