1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-15 01:34:21 +02:00

docs: unify naming of .goreleaser.yml file (#1955)

Since multiple filenames for the config file are allowed, we find several different usages of the file names in the docs:
- .goreleaser.yml
- goreleaser.yml
- .goreleaser.yaml
- goreleaser.yaml

I find that using a single filename in the docs is more intuitive for new users. Hence I replaced all occurrences of the filename with `.goreleaser.yml`.
This commit is contained in:
Rico
2020-12-20 14:56:00 +01:00
committed by GitHub
parent 65e264abc5
commit 9423da1b60
9 changed files with 13 additions and 13 deletions

View File

@ -98,7 +98,7 @@ on the archive section.
A working hack is to use something like this:
```yaml
# goreleaser.yml
# .goreleaser.yml
archives:
- files:
- none*
@ -119,7 +119,7 @@ Presumably, you'll want that file to be the binary, so, your archive section
will probably look like this:
```yaml
# goreleaser.yml
# .goreleaser.yml
archives:
- format: gz
files:
@ -138,7 +138,7 @@ extracted with something like `gzip -d file.gz`.
You can do that by setting `format` to `binary`:
```yaml
# goreleaser.yml
# .goreleaser.yml
archives:
- format: binary
```

View File

@ -132,7 +132,7 @@ builds:
Here is an example with multiple binaries:
```yaml
# goreleaser.yml
# .goreleaser.yml
builds:
- main: ./cmd/cli/cli.go
id: "cli"
@ -243,7 +243,7 @@ Environment variables are inherited and overridden in the following order:
very likely to fail.
You can solve this by running `go mod download` before calling `goreleaser` or
by adding a [hook][] doing that on your `.goreleaser.yaml` file:
by adding a [hook][] doing that on your `.goreleaser.yml` file:
```yaml
before:

View File

@ -81,7 +81,7 @@ Then, on our GoReleaser config file, we need to define both the `dockers` and
the `docker_manifests` section:
```yaml
# goreleaser.yml
# .goreleaser.yml
builds:
- env:
- CGO_ENABLED=0

View File

@ -5,7 +5,7 @@ title: Environment Variables
Global environment variables to be passed down to all hooks and builds.
This is useful for `GO111MODULE`, for example. You can have your
`.goreleaser.yaml` file like the following:
`.goreleaser.yml` file like the following:
```yaml
# .goreleaser.yml

View File

@ -18,7 +18,7 @@ with [GnuPG](https://www.gnupg.org/) and your default key. To enable signing
just add
```yaml
# goreleaser.yml
# .goreleaser.yml
signs:
- artifacts: checksum
```
@ -86,7 +86,7 @@ If what you want to use does not do it, you can always hack by setting the
command to `sh -c`. For example:
```yaml
# goreleaser.yml
# .goreleaser.yml
signs:
- cmd: sh
args: