Skip to main content
We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation.
GitHub AE is currently under limited release.

リポジトリのリリースを管理する

リリースを作成し、プロジェクトのイテレーションをバンドルしてユーザに配信できます。

Who can use this feature

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

リリース管理について

リリース ノート、共同作成者の @mentions、バイナリ ファイルへのリンクを含む新しいリリースを作成したり、既存のリリースを編集または削除したりすることができます。 Releases API を使って、リリースを作成、変更、削除することもできます。 詳しくは、REST API ドキュメントの「リリース」をご覧ください。

リリースの作成

  1. ご自分のエンタープライズ で、リポジトリのメイン ページへ移動します。 1. ファイルの一覧の右側にある [リリース] をクリックします。 右側のサイドバーの [リリース] セクション 1. At the top of the page, click Draft a new release.
  2. To chose a tag for the release, select the Choose a tag dropdown menu.
    • To use an existing tag, click the tag.
    • To create a new tag, type a version number for your release, then click Create new tag.
  3. If you created a new tag, select the Target dropdown menu, then click the branch that contains the project you want to release.
  4. 必要に応じて、説明テキスト ボックスの右上にある [Previous tag](前のタグ) ドロップダウン メニューを選び、前のリリースを識別するタグをクリックします。 前のリリースを識別するタグを選ぶ方法を示すスクリーンショット 1. In the "Release title" field, type a title for your release.
  5. "このリリースの説明" フィールドに、リリースの説明を入力します。 説明の中で任意のユーザーに @mention する場合、公開されるリリースには、 [共同作成者] セクションと、メンションされているすべてのユーザーのアバター リストが含まれます。
    1. Optionally, to include binary files such as compiled programs in your release, drag and drop or manually select files in the binaries box.
  6. Optionally, to notify users that the release is not ready for production and may be unstable, select This is a pre-release.
  7. If you're ready to publicize your release, click Publish release. To work on the release later, click Save draft. You can then view your published or draft releases in the releases feed for your repository. For more information, see "リポジトリのリリースとタグを表示する."

GitHub CLI の詳細については、「GitHub CLI について」を参照してください。

  1. リリースを作成するには、gh release create サブコマンドを使用します。 tag をリリースに必要なタグに置き換えます。

    gh release create TAG
  2. 対話型のプロンプトに従います。 または、引数を指定して、これらのプロンプトをスキップすることもできます。 このコマンドの詳細については、GitHub CLI のマニュアルを参照してください。 たとえば、このコマンドでは、指定したタイトルとノートを含むプレリリースが作成されます。

    gh release create v1.3.2 --title "v1.3.2 (beta)" --notes "this is a beta release" --prerelease

ノート内で任意の GitHub AE ユーザーに @mention する場合、GitHub.com で公開されたリリースに [共同作成者] セクションとメンションされたユーザーのアバター リストが含まれます。

リリースの編集

  1. ご自分のエンタープライズ で、リポジトリのメイン ページへ移動します。 1. ファイルの一覧の右側にある [リリース] をクリックします。 右側のサイドバーの [リリース] セクション

  2. Next to the release you want to edit, click .

    Screenshot of a release in the releases list. A pencil icon is highlighted with an orange outline.

  3. フォーム内でリリースの詳細を編集し、 [リリースの更新] をクリックします。 説明内で GitHub ユーザーの @mentions を追加または削除する場合、リリースの [共同作成者] セクションのアバター リストでそのユーザーが追加または削除されます。

現在、リリースは GitHub CLI では編集できません。

リリースの削除

  1. ご自分のエンタープライズ で、リポジトリのメイン ページへ移動します。 1. ファイルの一覧の右側にある [リリース] をクリックします。 右側のサイドバーの [リリース] セクション

  2. ページの右側で、削除するリリースの横にある をクリックします。

    リリース一覧内のリリースのスクリーンショット。 ごみ箱アイコンがオレンジ色の枠線で強調表示されています。

  3. [このリリースを削除] をクリックします。

  1. リリースを削除するには、gh release delete サブコマンドを使用します。 tag を削除するリリースのタグに置き換えます。 確認をスキップするには、-y フラグを使用します。

    gh release delete TAG -y