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

docs: improve docs

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2021-09-11 15:01:47 -03:00
parent 2c6c832d3c
commit 315c805efc
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -330,14 +330,23 @@ In any case, its pretty easy to do that now:
```yaml
# .goreleaser.yml
builds:
- id: prebuilt
-
# Set the builder to prebuilt
builder: prebuilt
# When builder is `prebuilt` there are no defaults for goos, goarch,
# goarm, gomips and targets.
goos:
- linux
- darwin
goarch:
- amd64
- arm64
# Path must be the template path to the binaries.
# GoReleaser removes the `dist` folder before running, so you will likely
# want to put the binaries elsewhere.
# This field is required when using the `prebuilt` builder.
path: output/mybin_{{ .Os }}_{{ .Arch }}
```