mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
parent
8c48420367
commit
04227e950b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user