Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.58 KB

RELEASE.md

File metadata and controls

68 lines (48 loc) · 1.58 KB

Release procedure

This document describes how to release a new version of setup-hw.

Versioning

Follow semantic versioning 2.0.0 to choose the new version number.

Change log

Notable changes since the last release should be listed in CHANGELOG.md.

The file should respect Keep a Changelog format.

Bump version

  1. Determine a new version number. Then set VERSION variable.

    # Set VERSION and confirm it. It should not have "v" prefix.
    $ VERSION=x.y.z
    $ echo $VERSION
  2. Make a branch to release

    $ git checkout main
    $ git pull
    $ git checkout -b "bump-$VERSION"
  3. Edit CHANGELOG.md for the new version (example).

  4. Commit the change and create a new pull request

    $ git commit -a -m "Bump version to $VERSION"
    $ git push -u origin HEAD
    $ gh pr create -f
  5. Merge the pull request.

  6. Pull main branch, add a git tag, then push it.

    # Set VERSION again.
    $ VERSION=x.y.z
    $ echo $VERSION
    
    $ git checkout main
    $ git pull
    $ git tag -a -m "Release v$VERSION" "v$VERSION"
    
    # Make sure the release tag exists.
    $ git tag -ln | grep $VERSION
    
    $ git push origin "v$VERSION"

GitHub actions will build and push artifacts such as container images and create a new GitHub release.