mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-04 03:11:55 +02:00
Merge pull request #43 from wayneashleyberry/patch-1
Installation and usage notes
This commit is contained in:
commit
e45e47b953
12
README.md
12
README.md
@ -5,7 +5,6 @@ Deliver Go binaries as fast and easily as possible.
|
||||
GoReleaser builds Go binaries for several platforms, creates a github release and then
|
||||
push a homebrew formulae to a repository. All that wrapped in your favorite CI.
|
||||
|
||||
|
||||
This project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md).
|
||||
By participating, you are expected to uphold this code. Please report unacceptable behavior to root@carlosbecker.com.
|
||||
|
||||
@ -19,14 +18,19 @@ So, the all-new goreleaser was born.
|
||||
|
||||
## Usage
|
||||
|
||||
Basically, you need to create a `goreleaser.yml` file in the root of your
|
||||
repository. A minimal config would look like this:
|
||||
Create a `goreleaser.yml` file in the root of your repository. A minimal config would look like this:
|
||||
|
||||
```yaml
|
||||
repo: user/repo
|
||||
binary_name: my-binary
|
||||
```
|
||||
|
||||
You may then run releaser at the root of your repository:
|
||||
|
||||
```sh
|
||||
curl -s https://raw.githubusercontent.com/goreleaser/get/master/latest | bash
|
||||
```
|
||||
|
||||
This will build `main.go` file as `my-binary`, for _Darwin_ and _Linux_,
|
||||
_x86_64_ and _i386_, packaging the binary, `LICENSE.md` and `README.md`
|
||||
and publish a new github release in the `user/repo` repository with
|
||||
@ -85,7 +89,7 @@ after_success:
|
||||
test -n "$TRAVIS_TAG" && curl -s https://raw.githubusercontent.com/goreleaser/get/master/latest | bash
|
||||
```
|
||||
|
||||
## How the end result looks like
|
||||
## What the end result looks like
|
||||
|
||||
The release on github looks pretty much like this:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user