You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-09-16 09:26:52 +02:00
@@ -18,7 +18,8 @@ So, the all-new goreleaser was born.
|
|||||||
|
|
||||||
## Usage
|
## 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
|
```yaml
|
||||||
repo: user/repo
|
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
|
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`
|
This will build `main.go` as `my-binary`, for `Darwin` and `Linux`
|
||||||
(`amd64` and `i386`), archive the binary and common files as `.tar.gz`,
|
(`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
|
and finally, publish a new github release in the `user/repo` repository with
|
||||||
|
Reference in New Issue
Block a user