go-release

command module
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

go-release

Overview

Build wrapper to automate version tagging and incrementing. Supports the following standard build flow:

  • Run verification build (optional)
  • Tag git with current version
  • Run release build (if applicable)
  • Increment the version and commit
  • Push to origin (optional)

Install

Install the package as follows:

go get -u github.com/activatedio/go-release

Create a file .version in your go project with the current version.

v1.0.0

Create a ggo-release.yaml file in your project with build defintions:

---
verify: go test ./...

Configuration

Support yaml values are:

Name Description
verify Command to run before tagging the project
perform Command to run to perform release
skip-push Skip push to origin

The verify command is recommeded to check the project via compliation and any automated tests.

The perform command is used for projects which require a build step to release. Projects such as go modules generally to not require this.

Usage

To check the release before performing

go-release check

Perform the release

go-release perform

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL