Skip to content

Commit 47ed41b

Browse files
author
vilmibm
committed
add some more examples for release create
1 parent 9ee580d commit 47ed41b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pkg/cmd/release/create/create.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,19 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
7878
git, push the tag to GitHub, then run this command.
7979
`, "`"),
8080
Example: heredoc.Doc(`
81-
# use release notes from a file
81+
Interactively create a release
82+
$ gh release create v1.2.3
83+
84+
Non-interactively create a release
85+
$ gh release create v1.2.3 --notes "bugfix release"
86+
87+
Use release notes from a file
8288
$ gh release create v1.2.3 -F changelog.md
8389
84-
# upload all tarballs in a directory as release assets
90+
Upload all tarballs in a directory as release assets
8591
$ gh release create v1.2.3 ./dist/*.tgz
8692
87-
# upload a release asset with a display label
93+
Upload a release asset with a display label
8894
$ gh release create v1.2.3 '/path/to/asset.zip#My display label'
8995
`),
9096
Args: cmdutil.MinimumArgs(1, "could not create: no tag name provided"),

0 commit comments

Comments
 (0)