Mar 14 2018

Creating proper Github releases

Step-by-step instructions for creating Github Releases like the pros.

Assuming:

  • a master branch
  • a more-or-less stable dev branch ready to be merged into master
  • a VERSION.txt file holding release version

Pro Tip: keep release cycles short, release often!

Creating the release

  1. create VERSION.txt in your dev branch and fill it with the release number (e.g. 1.0-alpha1)
  2. merge the master branch into dev
  3. merge the dev branch back into master
  4. go to the Github page holding your project and:
    • select releases
    • select Draft a new release
    • fill in 1.0-alpha1 as the Tag version
    • target the master branch
    • doublecheck before pressing the “Publish release” button

That’s all there’s too it, your first release.

Note: to prevent future merge conflicts caused by e.g. bugfixes… regularly merge master into dev!

Starting work on the next release

Now that the release is out, it’s time to start work on the next one

  1. update VERSION.txt in the dev branch with the next release number (e.g. 1.0-alpha2)
  2. commit and push change to dev
  3. add features to your dev branch

Once you are ready to publish a new release… simply restart Creating the release but skip step 1.