1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-09-16 09:26:52 +02:00

docs: hooks

This commit is contained in:
Carlos Alexandro Becker
2021-05-27 14:47:38 -03:00
committed by GitHub
parent 89d5692afe
commit 8bce27606b

View File

@@ -21,6 +21,12 @@ before:
If any of the hooks fails the build process is aborted.
## Complex commands
If you need to do anything more complex, it is recommended to create a shell script and call it instead.
You can also go crazy with `sh -c "my commands"`, but it gets ugly real fast.
## Pro Features
With [GoReleaser Pro](/pro), things are a bit more flexible: you can specify the dir, enviroment variables and also global after hooks.
@@ -57,8 +63,3 @@ after:
!!! tip
Learn more about the [name template engine](/customization/templates/).
## Complex commands
If you need to do anything more complex, it is recommended to create a shell script and call it instead.
You can also go crazy with `sh -c "my commands"`, but it gets ugly real fast.