mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
docs: fix hooks env usage
closes #2762 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
78cca698f7
commit
c540c6cbf5
@ -41,7 +41,7 @@ GoReleaser allows this with the global hooks feature.
|
||||
dir: ./submodule # specify command working directory
|
||||
- cmd: touch {{ .Env.FILE_TO_TOUCH }}
|
||||
env:
|
||||
FILE_TO_TOUCH: 'something-{{ .ProjectName }}' # specify hook level environment variables
|
||||
- 'FILE_TO_TOUCH=something-{{ .ProjectName }}' # specify hook level environment variables
|
||||
|
||||
# global after hooks
|
||||
after:
|
||||
@ -52,7 +52,7 @@ GoReleaser allows this with the global hooks feature.
|
||||
dir: ./submodule
|
||||
- cmd: touch {{ .Env.RELEASE_DONE }}
|
||||
env:
|
||||
RELEASE_DONE: 'something-{{ .ProjectName }}' # specify hook level environment variables
|
||||
- 'RELEASE_DONE=something-{{ .ProjectName }}' # specify hook level environment variables
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user