2020-05-10 21:57:11 +02:00
|
|
|
# Customization
|
2017-09-10 22:07:28 +02:00
|
|
|
|
2021-12-23 02:52:01 +02:00
|
|
|
GoReleaser can be customized by tweaking a `.goreleaser.yaml` file.
|
2018-04-25 07:20:12 +02:00
|
|
|
|
2022-09-17 05:13:09 +02:00
|
|
|
You can generate an example config by running
|
|
|
|
[`goreleaser init`](/cmd/goreleaser_init/) or start from scratch.
|
2021-09-28 03:43:00 +02:00
|
|
|
|
2022-09-17 05:13:09 +02:00
|
|
|
You can also check if your config is valid by running
|
|
|
|
[`goreleaser check`](/cmd/goreleaser_check/), which will tell you if are using
|
|
|
|
deprecated or invalid options.
|
2021-10-26 20:15:26 +02:00
|
|
|
|
|
|
|
## JSON Schema
|
|
|
|
|
2022-09-17 05:13:09 +02:00
|
|
|
GoReleaser also has a [jsonschema][] file, which you can use to have better
|
|
|
|
editor support:
|
2021-10-26 20:15:26 +02:00
|
|
|
|
|
|
|
=== "OSS"
|
|
|
|
```sh
|
2021-10-29 19:03:29 +02:00
|
|
|
https://goreleaser.com/static/schema.json
|
2021-10-26 20:15:26 +02:00
|
|
|
```
|
|
|
|
|
2022-09-15 14:41:26 +02:00
|
|
|
You can also specify it in your `.goreleaser.yml` config file by adding a
|
|
|
|
comment like the following:
|
|
|
|
```yaml
|
|
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
|
|
|
```
|
|
|
|
|
2021-10-26 20:15:26 +02:00
|
|
|
=== "Pro"
|
|
|
|
```sh
|
2021-10-29 19:03:29 +02:00
|
|
|
https://goreleaser.com/static/schema-pro.json
|
2021-10-26 20:15:26 +02:00
|
|
|
```
|
|
|
|
|
2022-09-15 14:41:26 +02:00
|
|
|
You can also specify it in your `.goreleaser.yml` config file by adding a
|
|
|
|
comment like the following:
|
|
|
|
```yaml
|
|
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
|
|
|
|
```
|
|
|
|
|
2022-09-17 05:13:09 +02:00
|
|
|
You can also generate it for your specific version using the
|
|
|
|
[`goreleaser jsonschema`][schema] command.
|
2021-10-26 20:15:26 +02:00
|
|
|
|
|
|
|
[jsonschema]: http://json-schema.org/draft/2020-12/json-schema-validation.html
|
|
|
|
[schema]: /cmd/goreleaser_jsonschema/
|