github-release

Upload files to GitHub releases.

Version on this page:2.0.0.0
LTS Haskell 22.39:2.0.0.11
Stackage Nightly 2024-10-31:2.0.0.11
Latest on Hackage:2.0.0.11

See all snapshots github-release appears in

MIT licensed
Maintained by Taylor Fausak
This version can be pinned in stack with:github-release-2.0.0.0@sha256:d0184f765f2d97c49be4265efb79bb99d8c6dacfa08dd0e196853bb770ac6e63,1884

Module documentation for 2.0.0.0

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.

Changes

Change log

GitHub Release follows the Package Versioning Policy. You can find release notes on GitHub.