github-release 0.1.8 → 0.1.9
raw patch · 3 files changed
+40/−4 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- README.markdown +36/−0
- github-release.cabal +2/−2
- package.yaml +2/−2
README.markdown view
@@ -7,6 +7,12 @@ GitHub Release is a command-line utility for uploading files to GitHub releases. +The recommended way to get GitHub Release is to download [the latest release][]+for your operating system. These releases are, of course, added with GitHub+Release itself.++Once you've got it, run it like so:+ ``` sh github-release upload \ --token '...' \@@ -17,6 +23,33 @@ --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 <https://github.com/aktau/github-release>. [GitHub Release]: https://github.com/tfausak/github-release@@ -26,3 +59,6 @@ [build]: https://travis-ci.org/tfausak/github-release [Windows build badge]: https://ci.appveyor.com/api/projects/status/github/tfausak/github-release?svg=true [windows build]: https://ci.appveyor.com/project/TaylorFausak/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/
github-release.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: github-release-version: 0.1.8+version: 0.1.9 synopsis: Upload files to GitHub releases. description: GitHub Release is a command-line utility for uploading files to GitHub releases. category: Utility@@ -31,7 +31,7 @@ ghc-options: -Wall build-depends: aeson >=0.9.0.1 && <0.12- , base >=4.8.2.0 && <4.9+ , base >=4.8.2.0 && <4.10 , bytestring >=0.10.6.0 && <0.11 , http-client >=0.4.28 && <0.5 , http-client-tls >=0.2.4 && <0.3
package.yaml view
@@ -22,7 +22,7 @@ library: dependencies: - aeson >=0.9.0.1 && <0.12- - base >=4.8.2.0 && <4.9+ - base >=4.8.2.0 && <4.10 - bytestring >=0.10.6.0 && <0.11 - http-client >=0.4.28 && <0.5 - http-client-tls >=0.2.4 && <0.3@@ -39,4 +39,4 @@ maintainer: Taylor Fausak name: github-release synopsis: Upload files to GitHub releases.-version: '0.1.8'+version: '0.1.9'