Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.
/ go-git-release Public archive

A tool to create a tag, binary builds and a Github relsease with a single CLI command

License

Notifications You must be signed in to change notification settings

clcollins/go-git-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#This repository is archived and will no longer receive updates.

go-git-release

A CLI tool to create a tag, build binary artifacts and create a Github release with a single command

Project Status: Extreme Alpha

Current Limitations:

  1. Currently, this does not create a release or upload the artifacts, it just tags, pushes the tag and builds the artifacts

Usage

# Clone the default branch of the providied repositoryURL, create an annotated tag with 
# the provided message, and run the Make "buildRelease" target to generate assets

./go-git-release --tag v0.1.0 --repositoryURL [email protected]:clcollins/go-git-release.go \
                 --tagMessage "This is version 0.1.0 of go-git-release"

If the tag already exists, go-git-release will prompt whether or not to use the existing tag.

If a tag annotation message is not provided, go-git-release will open an editor, Git-style, and prompt the user for a message.

Configuration

Command line flags can alternatively be privided via a configuration file or environment variables.

Order precidence is as follows:

  1. command line flags
  2. environment variables
  3. config file values

Environment variables

Uppercased environment variables matching the flag names show in the help output will be parsed upon execution. For instance, in the example below, the environment variable REPOSITORYURL will be used for the repositoryURL CLI flag.

[email protected]/foo/bar.git go-git-release

Confg File

Configuration flags will be read from a YAML config file specified by the --config or -c flags, or by default a .go-git-release.yaml file in the current working directory, if it exists.

Values should match the long-form flag name shown in the help output.

Acknowledgements

A large part of this code base is cribbed from:

About

A tool to create a tag, binary builds and a Github relsease with a single CLI command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published