Commandline app to create and edit releases on Github (and upload artifacts)
Commandline app to create and edit releases on Github (and upload artifacts)
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
possible 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. github-release takes
care of those little details.
It might still be a bit rough around the edges, pull requests are welcome!
If you don't have the Go toolset installed, and you don't want to, but still want to use the app, you can download binaries for your platform on the releases page. Yes, that's dogfooding, check the makefile!
If you have Go installed, you can just do:
go install github.com/github-release/github-releaseThis will automatically download, compile and install the app.
After that you should have a github-release executable in your
$GOPATH/bin.
NOTE: for these examples I've created a github token and set it as
the env variable GITHUB_TOKEN. github-release will automatically pick it up
from the environment so that you don't have to pass it as an argument.
…The release command does not have an --auth-user flag because in practice,
Github ignores the --auth-user flag when validating releases. The only thing
that matters is passing a token that has permission to create the release.
You can point to a different GitHub API endpoint via the environment variable GITHUB_API:
export GITHUB_API=http://github.company.com/api/v3| Package | Description | License |
|---|---|---|
| github.com/dustin/go-humanize | humanize file sizes | MIT |
| github.com/tomnomnom/linkheader | GH API pagination | MIT |
| github.com/voxelbrain/goptions | option parsing | BSD |
| github.com/kevinburke/rest | HTTP client | MIT |
Copyright (c) 2014-2017, Nicolas Hillegeer. All rights reserved. Copyright (c) 2020, Meter, Inc. All rights reserved.
No open issues yet, or sync has not completed.