forked from APACGAMONDE/Gift-Card-Trade-in
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgh-release-create.1
95 lines (66 loc) · 1.89 KB
/
gh-release-create.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.nh
.TH "gh" "1" "Jun 2021" "" ""
.SH NAME
.PP
gh\-release\-create \- Create a new release
.SH SYNOPSIS
.PP
\fBgh release create [\&...]\fP
.SH DESCRIPTION
.PP
Create a new GitHub Release for a repository.
.PP
A list of asset files may be given to upload to the new release. To define a
display label for an asset, append text starting with \fB\fC#\fR after the file name.
.PP
If a matching git tag does not yet exist, one will automatically get created
from the latest state of the default branch. Use \fB\fC\-\-target\fR to override this.
To fetch the new tag locally after the release, do \fB\fCgit fetch \-\-tags origin\fR\&.
.PP
To create a release from an annotated git tag, first create one locally with
git, push the tag to GitHub, then run this command.
.SH OPTIONS
.PP
\fB\-d\fP, \fB\-\-draft\fP[=false]
Save the release as a draft instead of publishing it
.PP
\fB\-n\fP, \fB\-\-notes\fP=""
Release notes
.PP
\fB\-F\fP, \fB\-\-notes\-file\fP=""
Read release notes from \fB\fCfile\fR
.PP
\fB\-p\fP, \fB\-\-prerelease\fP[=false]
Mark the release as a prerelease
.PP
\fB\-\-target\fP=""
Target \fB\fCbranch\fR or full commit SHA (default: main branch)
.PP
\fB\-t\fP, \fB\-\-title\fP=""
Release title
.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-\-help\fP[=false]
Show help for command
.PP
\fB\-R\fP, \fB\-\-repo\fP=""
Select another repository using the \fB\fC[HOST/]OWNER/REPO\fR format
.SH EXAMPLE
.PP
.RS
.nf
Interactively create a release
$ gh release create v1.2.3
Non\-interactively create a release
$ gh release create v1.2.3 \-\-notes "bugfix release"
Use release notes from a file
$ gh release create v1.2.3 \-F changelog.md
Upload all tarballs in a directory as release assets
$ gh release create v1.2.3 ./dist/*.tgz
Upload a release asset with a display label
$ gh release create v1.2.3 '/path/to/asset.zip#My display label'
.fi
.RE
.SH SEE ALSO
.PP
\fBgh\-release(1)\fP