github-release: Upload files to GitHub releases.

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

GitHub Release uploads files to GitHub releases.


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
pedantic

Enables -Werror, which turns warnings into errors.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

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
Change log CHANGELOG.markdown
Dependencies aeson (>=1.4.7 && <1.6 || >=2.0.0 && <2.1), base (>=4.13.0 && <4.17), burrito (>=1.2.0 && <1.3 || >=2.0.0 && <2.1), bytestring (>=0.10.10 && <0.12), github-release, http-client (>=0.6.4 && <0.8), http-client-tls (>=0.3.5 && <0.4), http-types (>=0.12.3 && <0.13), mime-types (>=0.1.0 && <0.2), optparse-generic (>=1.3.1 && <1.5), text (>=1.2.4 && <1.3), unordered-containers (>=0.2.10 && <0.3) [details]
License MIT
Author
Maintainer Taylor Fausak
Category Utility
Source repo head: git clone https://github.com/tfausak/github-release
Uploaded by fozworth at 2022-01-09T14:38:59Z
Distributions LTSHaskell:2.0.0.0, NixOS:2.0.0.0, Stackage:2.0.0.0
Executables github-release
Downloads 21323 total (110 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-01-09 [all 1 reports]

Readme for github-release-2.0.0.0

[back to package description]

GitHub Release

CI Hackage Stackage

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

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

github-release upload \
  --token '...' \
  --owner 'someone' \
  --repo 'something' \
  --tag 'v1.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.