You've already forked goreleaser
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:
@@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user