You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2026-05-16 09:20:15 +02:00
docs
This commit is contained in:
@@ -62,6 +62,17 @@ build:
|
||||
|
||||
> `oses` and `arches` should be in `GOOS`/`GOARCH`-compatible format.
|
||||
|
||||
### Custom final file name
|
||||
|
||||
|
||||
```yaml
|
||||
repo: user/repo
|
||||
binary_name: my-binary
|
||||
name_template: "{{.BinaryName}}_{{.Version}}_{{.Os}}_{{.Arch}}"
|
||||
```
|
||||
|
||||
> Default is "{{.BinaryName}}_{{.Os}}_{{.Arch}}"
|
||||
|
||||
### Add more files
|
||||
|
||||
You might also want to change the files that are packaged by adding a `files`
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ type ProjectConfig struct {
|
||||
Token string `yaml:"-"`
|
||||
Build BuildConfig
|
||||
Git GitInfo `yaml:"-"`
|
||||
NameTemplate string
|
||||
NameTemplate string `yaml:"name_template"`
|
||||
}
|
||||
|
||||
// Load config file
|
||||
|
||||
@@ -10,4 +10,3 @@ build:
|
||||
- windows
|
||||
- darwin
|
||||
- linux
|
||||
NameTemplate: {{.BinaryName}}_{{.Version}}_{{.Os}}_{{.Arch}}
|
||||
|
||||
Reference in New Issue
Block a user