1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-11-06 09:09:29 +02:00

docs: fix hooks env usage

closes #2762

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos A Becker
2021-12-15 16:03:58 -03:00
parent 78cca698f7
commit c540c6cbf5

View File

@@ -41,7 +41,7 @@ GoReleaser allows this with the global hooks feature.
dir: ./submodule # specify command working directory dir: ./submodule # specify command working directory
- cmd: touch {{ .Env.FILE_TO_TOUCH }} - cmd: touch {{ .Env.FILE_TO_TOUCH }}
env: env:
FILE_TO_TOUCH: 'something-{{ .ProjectName }}' # specify hook level environment variables - 'FILE_TO_TOUCH=something-{{ .ProjectName }}' # specify hook level environment variables
# global after hooks # global after hooks
after: after:
@@ -52,7 +52,7 @@ GoReleaser allows this with the global hooks feature.
dir: ./submodule dir: ./submodule
- cmd: touch {{ .Env.RELEASE_DONE }} - cmd: touch {{ .Env.RELEASE_DONE }}
env: env:
RELEASE_DONE: 'something-{{ .ProjectName }}' # specify hook level environment variables - 'RELEASE_DONE=something-{{ .ProjectName }}' # specify hook level environment variables
``` ```