1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-09-16 09:26:52 +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

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