mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
docs: sync with pro
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
e2c93f5f39
commit
68f23cfc16
@ -90,3 +90,25 @@ GOVERSION_NR=$(go version | awk '{print $3;}') goreleaser
|
||||
!!! warning
|
||||
Note that those are hypothetical examples and the fields `foo_template` and
|
||||
`example_template` are not valid GoReleaser configurations.
|
||||
|
||||
## Custom variables
|
||||
|
||||
On [GoReleaser Pro](/pro) you can also declare custom variables.
|
||||
This feature is specially useful with [includes](/customization/includes), so you can have more generic config files.
|
||||
|
||||
Usage is as simple as you would expect:
|
||||
|
||||
```yaml
|
||||
# .goreleaser.yml
|
||||
variables:
|
||||
description: my project description
|
||||
somethingElse: yada yada yada
|
||||
```
|
||||
|
||||
And then you can use those fields as `{{ .description }}`, for example.
|
||||
|
||||
!!! warning
|
||||
You won't be allowed to override GoReleaser "native" fields.
|
||||
|
||||
!!! info
|
||||
Custom variables is a [GoReleaser Pro feature](/pro).
|
||||
|
@ -4,7 +4,8 @@ GoReleaser Pro is now available with some unique features such as:
|
||||
|
||||
- Ability to [include](/customization/includes/) config files (useful for common configurations);
|
||||
- Improved global hooks and [global after hooks](/customization/hooks/);
|
||||
- [Monorepo support](/customization/monorepo)!
|
||||
- [Monorepo support](/customization/monorepo);
|
||||
- [Custom template variables](/customization/templates/#custom-variables) (goes well with [includes](/customization/includes/)).
|
||||
|
||||
<script src="https://gumroad.com/js/gumroad.js"></script>
|
||||
<a class="gumroad-button" href="https://gumroad.com/l/CadfZ" target="_blank">Get GoReleaser Pro</a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user