Skip to content

Commit

Permalink
Update documentation ☕
Browse files Browse the repository at this point in the history
  • Loading branch information
tcnksm committed Jul 29, 2014
1 parent 0039778 commit 00415ab
Showing 1 changed file with 43 additions and 12 deletions.
55 changes: 43 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,77 @@
ghr [![wercker status](https://app.wercker.com/status/d03e68731c944d8202914a8aaa93d3f0/s "wercker status")](https://app.wercker.com/project/bykey/d03e68731c944d8202914a8aaa93d3f0)
====

Not released

Easy to release your project to Github Release page.

## Synopsis
## Description

`ghr` enable you to create release on Github and upload your artifacts to it.
`ghr` enable you to create release on Github and upload your artifacts to it. `ghr` will parallelize upload multiple artifacts.

## Demo

## VS.

- [aktau/github-release](https://github.com/aktau/github-release) - `github-release` can also create and edit releases and upload artifacts. It has many options. `ghr` is a simple alternative. And `ghr` will parallelize upload artifacts.


## Usage

To upload all package in `pkg` directory:
You need to execute command in your github project directory:

```bash
$ ghr v1.0 pkg
$ ghr [option] <tag> <artifacts>
```

## Install
You need to set `GITHUB_TOKEN` environmental variable:

To install, use `go get`:
```bash
$ export GITHUB_TOKEN="....."
```

## Example

To upload all package in `pkg` directory with tag `v0.1.0`

```bash
$ go get -d github.com/tcnksm/ghr
$ ghr v0.1.0 pkg/
--> Uploading: pkg/0.1.0_SHASUMS
--> Uploading: pkg/ghr_0.1.0_darwin_386.zip
--> Uploading: pkg/ghr_0.1.0_darwin_amd64.zip
--> Uploading: pkg/ghr_0.1.0_linux_386.zip
--> Uploading: pkg/ghr_0.1.0_linux_amd64.zip
--> Uploading: pkg/ghr_0.1.0_windows_386.zip
--> Uploading: pkg/ghr_0.1.0_windows_amd64.zip
```

## VS.
## Install

If you are OSX user, you can use [Homebrew](http://brew.sh/):

```bash
$ brew tap tcnksm/ghr
$ brew install ghr
```

- [aktau/github-release](https://github.com/aktau/github-release) - `github-release` can also create and edit releases and upload artifacts. It has many options. `ghr` is a super slim alternative.
If you are in another platform, please install binary from [relase page](https://github.com/tcnksm/ghr/releases) and place it in `$PATH` directory.

## Contribution

1. Fork ([https://github.com/tcnksm/ghr/fork](https://github.com/tcnksm/ghr/fork))
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the master branch
1. Run test suite with the `go test ./...` command and confirm that it passes
1. Run test suite with the `make test` command and confirm that it passes
1. Run `gofmt -s`
1. Create new Pull Request

You can get source with `go get`:

```bash
$ go get -d github.com/tcnksm/ghr
$ cd $GOPATH/src/github.com/tcnksm/cli-init
$ make install
```

## Licence

[MIT](https://github.com/tcnksm/ghr/blob/master/LICENCE)
Expand Down

0 comments on commit 00415ab

Please sign in to comment.