mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
chore: update docs/schema for pro
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
4f7475eee1
commit
a5f2302fd9
@ -86,6 +86,13 @@ changelog:
|
||||
regex: '.*build.*'
|
||||
order: 2
|
||||
|
||||
# Divider to use between groups.
|
||||
#
|
||||
# Defaults to empty.
|
||||
#
|
||||
# Since: v1.16.0-pro
|
||||
divider: '---'
|
||||
|
||||
filters:
|
||||
# Commit messages matching the regexp listed here will be removed from
|
||||
# the changelog
|
||||
|
@ -50,6 +50,7 @@ Key |Description
|
||||
`.TagBody` |the annotated tag message's body, or the message's body of the commit it points out[^git-tag-body]. Since v1.2.
|
||||
`.Runtime.Goos` |equivalent to `runtime.GOOS`. Since v1.5.
|
||||
`.Runtime.Goarch` |equivalent to `runtime.GOARCH`. Since v1.5.
|
||||
`.Artifacts` |the current artifact list. See table bellow for fields. Since v1.16-pro.
|
||||
|
||||
[^version-prefix]: The `v` prefix is stripped, and it might be changed in
|
||||
`snapshot` and `nightly` builds.
|
||||
@ -63,6 +64,26 @@ Key |Description
|
||||
[^git-tag-subject]: As reported by `git tag -l --format='%(contents:subject)'`
|
||||
[^git-tag-body]: As reported by `git tag -l --format='%(contents)'`
|
||||
|
||||
## Artifacts
|
||||
|
||||
If you use the `.Artifacts` field, it evaluates to an
|
||||
[`artifact.Artifact` list](https://pkg.go.dev/github.com/goreleaser/goreleaser@main/internal/artifact#Artifact).
|
||||
You should be able to use all its fields on each item:
|
||||
|
||||
- `.Name`
|
||||
- `.Path`
|
||||
- `.Goos`
|
||||
- `.Goarch`
|
||||
- `.Goarm`
|
||||
- `.Gomips`
|
||||
- `.Goamd64`
|
||||
- `.Type`
|
||||
- `.Extra`
|
||||
|
||||
|
||||
!!! success "GoReleaser Pro"
|
||||
The `.Artifacts` template variable is [GoReleaser Pro feature](/pro/).
|
||||
|
||||
## Single-artifact extra fields
|
||||
|
||||
On fields that are related to a single artifact (e.g., the binary name), you
|
||||
|
9
www/docs/static/schema-pro.json
generated
vendored
9
www/docs/static/schema-pro.json
generated
vendored
@ -510,6 +510,9 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"divider": {
|
||||
"type": "string"
|
||||
},
|
||||
"abbrev": {
|
||||
"type": "integer"
|
||||
},
|
||||
@ -2609,6 +2612,12 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"depends": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"goamd64": {
|
||||
"type": "string"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user