github-release: Upload files to GitHub releases.

[ library, mit, program, utility ] [ Propose Tags ]

GitHub Release is a command-line utility for uploading files to GitHub releases.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.1.1, 0.1.2, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.10, 2.0.0.0, 2.0.0.1, 2.0.0.2, 2.0.0.3, 2.0.0.4, 2.0.0.5, 2.0.0.6, 2.0.0.8, 2.0.0.9, 2.0.0.10
Change log CHANGELOG.markdown
Dependencies aeson (>=0.9 && <1.2), base (>=4.8.2 && <4.10), bytestring (>=0.10.6 && <0.11), github-release, http-client (>=0.4.30 && <0.6), http-client-tls (>=0.2.4 && <0.4), http-types (>=0.9 && <0.10), mime-types (>=0.1 && <0.2), optparse-generic (>=1.1 && <1.2), text (>=1.2.2 && <1.3), unordered-containers (>=0.2.5 && <0.3), uri-templater (>=0.2 && <0.3) [details]
License MIT
Author
Maintainer Taylor Fausak
Category Utility
Home page https://github.com/tfausak/github-release#readme
Bug tracker https://github.com/tfausak/github-release/issues
Source repo head: git clone https://github.com/tfausak/github-release
Uploaded by fozworth at 2017-01-02T15:26:00Z
Distributions LTSHaskell:2.0.0.10, NixOS:2.0.0.10, Stackage:2.0.0.10
Executables github-release
Downloads 23432 total (173 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-01-02 [all 1 reports]

Readme for github-release-1.0.1

[back to package description]

GitHub Release

Version badge Build badge Windows build badge

GitHub Release is a command-line utility for uploading files to GitHub releases.

The recommended way to get GitHub Release is to download the latest release for your operating system. These releases are, of course, added with GitHub Release itself.

Once you've got it, run it like so:

github-release upload \
  --token '...' \
  --owner 'someone' \
  --repo 'something' \
  --tag '1.2.3' \
  --file 'path/to/example.tgz' \
  --name 'example-1.2.3.tgz'

You can generate a token on the personal access tokens page of your personal settings. The file option is the path to the local file you want to upload. The name option is what the file should be called on the GitHub release.

GitHub Release is written in Haskell. If you want to build it yourself or use it in your project, you'll want to get Stack. Once you've done that, you can install and use it from the command line.

stack --resolver nightly install github-release
stack exec -- github release upload # as above ...

Or you can use it from Haskell.

import qualified GitHubRelease
GitHubRelease.upload
    "..."                 -- token
    "someone"             -- owner
    "something"           -- repo
    "1.2.3"               -- tag
    "path/to/example.tgz" -- file
    "example-1.2.3.tgz"   -- name

Inspired by https://github.com/aktau/github-release.