github-release: Upload files to GitHub releases.

[ library, mit, program, utility ] [ Propose Tags ] [ Report a vulnerability ]

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, 2.0.0.11
Change log CHANGELOG.md
Dependencies aeson (>=2.1.2.1 && <2.2 || >=2.2.2.0 && <2.3), base (>=4.18.0.0 && <4.19 || >=4.19.0.0 && <4.20 || >=4.20.0.0 && <4.21), burrito (>=2.0.1.9 && <2.1), bytestring (>=0.11.4.0 && <0.12 || >=0.12.0.2 && <0.13), github-release, http-client (>=0.7.17 && <0.8), http-client-tls (>=0.3.6.3 && <0.4), http-types (>=0.12.4 && <0.13), mime-types (>=0.1.2.0 && <0.2), optparse-generic (>=1.5.2 && <1.6), text (>=2.0.2 && <2.2), unordered-containers (>=0.2.20 && <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 2024-05-18T18:24:22Z
Distributions LTSHaskell:2.0.0.11, NixOS:2.0.0.11, Stackage:2.0.0.11
Executables github-release
Downloads 24409 total (28 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-05-18 [all 1 reports]

Readme for github-release-2.0.0.11

[back to package description]

GitHub Release

CI Hackage

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.