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

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 (>=2.0.3 && <2.3), base (>=4.16.0 && <4.20), burrito (>=1.2.0 && <1.3 || >=2.0.0 && <2.1), bytestring (>=0.11.3 && <0.13), github-release, http-client (>=0.7.13 && <0.8), http-client-tls (>=0.3.6 && <0.4), http-types (>=0.12.3 && <0.13), mime-types (>=0.1.0 && <0.2), optparse-generic (>=1.4.8 && <1.6), text (>=1.2.5 && <1.3 || >=2.0 && <2.2), unordered-containers (>=0.2.17 && <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 2023-12-29T19:31:35Z
Distributions LTSHaskell:2.0.0.10, NixOS:2.0.0.10, Stackage:2.0.0.10
Executables github-release
Downloads 23486 total (166 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-12-29 [all 1 reports]

Readme for github-release-2.0.0.10

[back to package description]

GitHub Release

Workflow 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.