1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00

docs: update docs and schema

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos A Becker 2022-01-20 16:22:54 -03:00
parent ebbcb29806
commit 592e763f6b
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
3 changed files with 118 additions and 5 deletions

View File

@ -141,7 +141,4 @@ variables:
empty: ""
```
And then you can use those fields as `{{ .description }}`, for example.
!!! warning
You won't be allowed to override GoReleaser "native" fields.
And then you can use those fields as `{{ .Var.description }}`, for example.

View File

@ -36,6 +36,28 @@ Description.
-->
### variables
> since 2022-01-20 (v1.4.0)
On [GoReleaser PRO][pro], custom variables should now be prefixed with `.Var`.
=== "Before"
``` yaml
variables:
foo: bar
some_template: 'lala-{{ .foo }}'
```
=== "After"
``` yaml
variables:
foo: bar
some_template: 'lala-{{ .Var.foo }}'
```
### nfpm.empty_folders
> since 2021-11-14 (v1.0.0)
@ -60,7 +82,7 @@ nFPM empty folders is now deprecated in favor of a `dir` content type:
### godownloader
> since 2021-10-13
> since 2021-10-13 (all)
GoDownloader, the install script generator, wasn't been updated for a long time and is now officially deprecated.
The website and all install scripts will be taken out in 6 months.

94
www/docs/static/schema-pro.json generated vendored
View File

@ -3,6 +3,93 @@
"$ref": "#/definitions/Project",
"description": "goreleaser configuration definition file",
"definitions": {
"AUR": {
"properties": {
"name": {
"type": "string"
},
"ids": {
"items": {
"type": "string"
},
"type": "array"
},
"commit_author": {
"$ref": "#/definitions/CommitAuthor"
},
"commit_msg_template": {
"type": "string"
},
"description": {
"type": "string"
},
"homepage": {
"type": "string"
},
"license": {
"type": "string"
},
"skip_upload": {
"type": "string"
},
"url_template": {
"type": "string"
},
"maintainers": {
"items": {
"type": "string"
},
"type": "array"
},
"contributors": {
"items": {
"type": "string"
},
"type": "array"
},
"provides": {
"items": {
"type": "string"
},
"type": "array"
},
"conflicts": {
"items": {
"type": "string"
},
"type": "array"
},
"depends": {
"items": {
"type": "string"
},
"type": "array"
},
"optdepends": {
"items": {
"type": "string"
},
"type": "array"
},
"rel": {
"type": "string"
},
"package": {
"type": "string"
},
"git_url": {
"type": "string"
},
"git_ssh_command": {
"type": "string"
},
"private_key": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"After": {
"properties": {
"hooks": {
@ -1598,6 +1685,13 @@
},
"type": "array"
},
"aurs": {
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/AUR"
},
"type": "array"
},
"krews": {
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",