Skip to content
πŸ™ command-line app to create and edit releases on Github (and upload artifacts)
Go Makefile
Branch: master
Clone or download
This branch is 12 commits ahead of aktau:master.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


This is a fork of aktau/github-release with a few tweaks. All the original credit should go directly to Nicolas Hillegeer :)

A small commandline app written in Go that allows you to easily create and delete releases of your projects on Github. In addition it allows you to attach files to those releases.

It interacts with the github releases API. Though it's entirely possibly to do all these things with cURL, It's not really that user-friendly. For example, you need to first query the API to find the id of the release you want, before you can upload an artifact. gothub takes care of those little details.

It might still be a bit rough around the edges, pull requests are welcome!

NOTE: I've been made aware of the existence of the gothub fork. Since I have very little time to work on the project and have been a really bad maintainer, I suggest checking it out to see if your issues have been solved there.

How to install

If/when you have Go installed, you can just do:

go get

This will automatically download, compile and install the app.

After that you should have a gothub executable in your $GOPATH/bin.

How to use

NOTE: for these examples I've created a github token and set it as the env variable GITHUB_TOKEN. gothub will automatically pick it up from the environment so that you don't have to pass it as an argument.

# set your token
export GITHUB_TOKEN=...

# check the help
$ gothub --help

# make your tag and upload
$ git tag ... && git push --tags

# check the current tags and existing releases of the repo
$ gothub info -u aktau -r gofinance
git tags:
- v0.1.0 (commit:
- v0.1.0, name: 'hoary ungar', description: 'something something dark side 2', id: 166740, tagged: 29/01/2014 at 14:27, published: 30/01/2014 at 16:20, draft: βœ”, prerelease: βœ—
  - artifact: github.go, downloads: 0, state: uploaded, type: application/octet-stream, size: 1.9KB, id: 68616

# create a formal release
$ gothub release \
    --user aktau \
    --repo gofinance \
    --tag v0.1.0 \
    --name "the wolf of source street" \
    --description "Not a movie, contrary to popular opinion. Still, my first release!" \

# you've made a mistake, but you can edit the release without
# having to delete it first (this also means you can edit without having
# to upload your files again)
$ gothub edit \
    --user aktau \
    --repo gofinance \
    --tag v0.1.0 \
    --name "Highlander II: The Quickening" \
    --description "This is the actual description!"

# upload a file, for example the OSX/AMD64 binary of aktau's gofinance app
$ gothub upload \
    --user aktau \
    --repo gofinance \
    --tag v0.1.0 \
    --name "gofinance-osx-amd64" \
    --file bin/darwin/amd64/gofinance

# upload other files...
$ gothub upload ...

# you're not happy with it, so delete it
$ gothub delete \
    --user aktau \
    --repo gofinance \
    --tag v0.1.0

Sometimes (too often), Github uploads fail with HTTP code 422. You can use the -R or --replace flag to delete any previous upload (failed or not) with the exact same name in a release

# re-upload a file, we mean it this time!
$ gothub upload \
    --user aktau \
    --repo gofinance \
    --tag v0.1.0 \
    --name "gofinance-osx-amd64" \
    --file bin/darwin/amd64/gofinance \

GitHub Enterprise Support

You can point to a different GitHub API endpoint via the environment variable GITHUB_API:

export GITHUB_API=

Used libraries

Package Description License humanize file sizes MIT GH API pagination MIT option parsing BSD


Copyright (c) 2016, Amos Wenger & the team. All rights reserved.

Copyright (c) 2014, Nicolas Hillegeer. All rights reserved.

You can’t perform that action at this time.