Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 2.83 KB

File metadata and controls

38 lines (28 loc) · 2.83 KB
title Release Resources and Template

Releases are the mechanism for packaging a set of features, bug fixes, and other modifications to a software repository. This page provides information about compiling (tagging) a release and its release notes, as well as examples and other web resources on this topic.

Tagging a Release

GitHub releases are driven by version tags (e.g., v1.0) applied to a set of commits.

  1. Look at your repo's release history and determine the appropriate incremental number (i.e., semantic versioning) to assign to the new release. The typical nomenclature is major.minor.patch where patch is optional. Ex: v1.2 or v1.2.1
  2. View a log of your commit history. Ex: $ git log or $ git log --pretty=oneline
  3. Decide which commits to include in the release.
  4. Apply the version tag to the last (most recent) commit's checksum. Ex: $ git tag -a v1.0 4c73e1
    • This action will prompt you to enter a message corresponding to the tag. Ex: News templates
  5. Confirm the commit tagged for the release. Ex: $ git show v1.0
  6. Push tag(s) to origin or upstream as appropriate. Ex: $ git push origin v1.0 or $ git push upstream --tags
  7. View your releases under your repo's Code tab, which lets you toggle between Releases and Tags. This is where the message from step 3 appears. Ex: this repo

Writing Release Notes

GitHub allows you to draft release notes directly in the UI. The steps are straightforward:

  1. Start a new draft release.
  2. Define its corresponding version (tag) number and branch.
  3. Give the release a title and description.
  4. Publish the release. Ex: this repo v1.2

Note: Be as clear as possible in your release notes so users know what they're getting. Ideally, this means each commit message is unique and direct. You may also want to organize your notes into categories or separate them with headings such as Enhancements, Bug Fixes, Deletions, etc. to help users navigate a long list of changes or highly detailed notes.

Resources