1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

document GITHUB_TOKEN

closes #39
This commit is contained in:
Carlos Alexandro Becker 2017-01-12 19:51:57 -02:00
parent 8c48420367
commit 04227e950b
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -18,7 +18,8 @@ So, the all-new goreleaser was born.
## Usage
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
@ -31,6 +32,10 @@ You may then run releaser at the root of your repository:
curl -s https://raw.githubusercontent.com/goreleaser/get/master/latest | bash
```
For that to work, you need to export a `GITHUB_TOKEN` environment variable with
the `repo` scope selected. You can create one
[here](https://github.com/settings/tokens/new).
This will build `main.go` as `my-binary`, for `Darwin` and `Linux`
(`amd64` and `i386`), archive the binary and common files as `.tar.gz`,
and finally, publish a new github release in the `user/repo` repository with