Managing releases in a repository

You can create releases to bundle and deliver iterations of a project to users.

Repository collaborators and people with write access to a repository can create, edit, and delete a release.

About release management

You can create new releases with release notes, @mentions of contributors, and links to binary files, as well as edit or delete existing releases.

You can also publish an action from a specific release in GitHub Marketplace. For more information, see "Publishing an action in the GitHub Marketplace."

You can choose whether Git Large File Storage (Git LFS) objects are included in the ZIP files and tarballs that GitHub creates for each release. For more information, see "Managing Git LFS objects in archives of your repository."

Creating a release

  1. GitHubで、リポジトリのメインページにアクセスしてください。

  2. ファイルのリストの右で、Releases(リリース)もしくはLatest release(最新のリリース)をクリックしてください。 右側のサイドバー内のリリースセクション

  3. Click Draft a new release. Releases draft button

  4. Click Choose a tag and type a version number for your release.

    Enter a tag

  5. Click Create new tag. Confirm you want to create a new tag

  6. Use the drop-down menu to select the branch that contains the project you want to release. Choose a branch

  7. Type a title and description for your 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. Releases description

  8. Optionally, to include binary files such as compiled programs in your release, drag and drop or manually select files in the binaries box. Providing a DMG with the Release

  9. To notify users that the release is not ready for production and may be unstable, select This is a pre-release. Checkbox to mark a release as prerelease

  10. Optionally, select Create a discussion for this release, then select the Category drop-down menu and click a category for the release discussion. Checkbox to create a release discussion and drop-down menu to choose a category

  11. If you're ready to publicize your release, click Publish release. To work on the release later, click Save draft. Publish release and Draft release buttons 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."

    Published release with @mentioned contributors

To learn more about GitHub CLI, see "About GitHub CLI."

  1. To create a release, use the gh release create subcommand. Replace tag with the desired tag for the release.

    gh release create tag
  2. 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.

Editing a release

  1. GitHubで、リポジトリのメインページにアクセスしてください。

  2. ファイルのリストの右で、Releases(リリース)もしくはLatest release(最新のリリース)をクリックしてください。 右側のサイドバー内のリリースセクション

  3. On the right side of the page, next to the release you want to edit, click Edit release. Edit a release

  4. 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. Update a release

Releases cannot currently be edited with GitHub CLI.

Deleting a release

  1. GitHubで、リポジトリのメインページにアクセスしてください。

  2. ファイルのリストの右で、Releases(リリース)もしくはLatest release(最新のリリース)をクリックしてください。 右側のサイドバー内のリリースセクション

  3. Click the name of the release you wish to delete. Link to view release

  4. In the upper-right corner of the page, click Delete. Delete release button

  5. Click Delete this release. Confirm delete release

  1. To delete a release, use the gh release delete subcommand. Replace tag with the tag of the release to delete. Use the -y flag to skip confirmation.

    gh release delete tag -y

このドキュメントは役立ちましたか?プライバシーポリシー

これらのドキュメントを素晴らしいものにするのを手伝ってください!

GitHubのすべてのドキュメントはオープンソースです。間違っていたり、はっきりしないところがありましたか?Pull Requestをお送りください。

コントリビューションを行う

OR, コントリビューションの方法を学んでください。

問題がまだ解決していませんか?

GitHubコミュニティで質問するサポートへの連絡