Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

argon/releaser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Releaser

Simple script to take the release-parts of git flow and automate them for our components.

Creates a release branch from current HEAD.

release_create

release_create <path_to_repository>

Creates a new release branch from current HEAD. Should be run from develop.

Steps:

  1. Prompts for an updated version number (e.g. 0.2.0)
  2. Prompts for a release name (must be git ref "safe", e.g. first-release)
  3. Reformats release_notes.md with a new header containing release details
  4. Creates a new branch (e.g. release/0.2.0-first-release)
  5. Commits all changes with a suitable message

release_package

release_package <path_to_repository>

Performs merges and tagging to update master with the latest version

  1. Update master from origin
  2. Merge release branch into master
  3. Push master
  4. Tags master in the format <version><name>
  5. Push tags
  6. Creates a new GitHub release with the latest release notes in the body
  7. Merges develop into release branch and pushes to allow CI to finish

release_merge

release_merge <path_to_repository>

Performs final merge of release branch into develop and cleans up release branches

  1. Merges release branch into develop through GitHub API
  2. Deletes remote release branch
  3. Deletes local release branch

Prerequisites

Repository

Protected develop branch. Unprotected master

Environment

A valid GitHub Personal Access Token must be available from gitcredentials or in the environment variable $GITHUB_TOKEN.

Files

  • version - containing the current version number
  • release_notes.md - Containing up to date release notes with the latest changes in the format:
### Features

* [..]

### Fixes

* [..]

- - -

Future work

  • Provide hooks to different backing-stores for the version number (perhaps by overriding the bash function
  • Add support for protected master branch (push release, merge with GH API)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages