https://github.com/tfausak/github-release
:octocat: Upload files to GitHub releases.
https://github.com/tfausak/github-release
github haskell
Last synced: 9 months ago
JSON representation
:octocat: Upload files to GitHub releases.
- Host: GitHub
- URL: https://github.com/tfausak/github-release
- Owner: tfausak
- License: mit
- Created: 2016-05-07T13:32:19.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-02-02T02:16:40.000Z (12 months ago)
- Last Synced: 2025-03-30T05:05:34.081Z (10 months ago)
- Topics: github, haskell
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/github-release
- Size: 121 KB
- Stars: 102
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# [GitHub Release][]
[](https://github.com/tfausak/github-release/actions/workflows/ci.yml)
[](https://hackage.haskell.org/package/github-release)
GitHub Release is a command-line utility for uploading files to GitHub
releases.
Once you've got it, run it like so:
``` sh
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.
``` sh
stack --resolver nightly install github-release
stack exec -- github-release upload # as above ...
```
Or you can use it from Haskell.
``` hs
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 .
[GitHub Release]: https://github.com/tfausak/github-release
[the latest release]: https://github.com/tfausak/github-release/releases/latest
[personal access tokens]: https://github.com/settings/tokens
[Stack]: http://docs.haskellstack.org/en/stable/README/