1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.