リリース管理について
You can create new releases with release notes, @mentions of contributors, and links to binary files, as well as edit or delete existing releases.
特定のリリースのアクションを GitHub Marketplace で公開することもできます。 詳しい情報については、「アクションを GitHub Marketplace で公開する」を参照してください。
Git Large File Storage(Git LFS)オブジェクトを、GitHub がリリースごとに作成する ZIP ファイルと tarball に含めるかどうかを選択できます。 詳しい情報については、「リポジトリのアーカイブ内の Git LFS オブジェクトを管理する」を参照してください。
リリースの作成
-
GitHub.comで、リポジトリのメインページにアクセスしてください。
-
To the right of the list of files, click Releases.
-
[Draft a new release] をクリックします。
-
Click Choose a tag, type a version number for your release, and press Enter. Alternatively, select an existing tag.
-
If you are creating a new tag, click Create new tag.
-
If you have created a new tag, use the drop-down menu to select the branch that contains the project you want to release.
-
Optionally, to the top right of the description text box, select the Previous tag drop-down menu and click the tag that identifies the previous release.
-
リリースのタイトルと説明を入力します。 If you @mention any GitHub users in the description, the published release will include a Contributors section with an avatar list of all the mentioned users. Alternatively, you can automatically generate your release notes by clicking Generate release notes.
-
オプションで、コンパイルされたプログラムなどのバイナリファイルをリリースに含めるには、ドラッグアンドドロップするかバイナリボックスで手動で選択します。
-
リリースが不安定であり、運用準備ができていないことをユーザに通知するには、[This is a pre-release] を選択します。
-
Optionally, if GitHub Discussions are enabled in the repository, select Create a discussion for this release, then select the Category drop-down menu and click a category for the release discussion.
-
リリースを公開する準備ができている場合は、[Publish release] をクリックします。 リリースの作業を後でする場合は、[Save draft] をクリックします。
You can then view your published or draft releases in the releases feed for your repository. For more information, see "Viewing your repository's releases and tags."
GitHub CLIについてさらに学ぶには、「GitHub CLIについて」を参照してください。
-
To create a release, use the
gh release create
subcommand. Replacetag
with the desired tag for the release.gh release create tag
-
Follow the interactive prompts. Alternatively, you can specify arguments to skip these prompts. For more information about possible arguments, see the GitHub CLI manual. For example, this command creates a prerelease with the specified title and notes.
gh release create v1.3.2 --title "v1.3.2 (beta)" --notes "this is a beta release" --prerelease
If you @mention any GitHub users in the notes, the published release on GitHub.com will include a Contributors section with an avatar list of all the mentioned users.
リリースの編集
-
GitHub.comで、リポジトリのメインページにアクセスしてください。
-
To the right of the list of files, click Releases.
-
On the right side of the page, next to the release you want to edit, click .
-
Edit the details for the release in the form, then click Update release. If you add or remove any @mentions of GitHub users in the description, those users will be added or removed from the avatar list in the Contributors section of the release.
Releases cannot currently be edited with GitHub CLI.
リリースの削除
-
GitHub.comで、リポジトリのメインページにアクセスしてください。
-
To the right of the list of files, click Releases.
-
On the right side of the page, next to the release you want to delete, click .
-
[Delete this release] をクリックします。
-
To delete a release, use the
gh release delete
subcommand. Replacetag
with the tag of the release to delete. Use the-y
flag to skip confirmation.gh release delete tag -y