github.com/szyn/goreleaser@v0.76.1-0.20180517112710-333da09a1297/www/content/hooks.md (about) 1 --- 2 title: Global Hooks 3 series: customization 4 hideFromIndex: true 5 weight: 20 6 --- 7 8 Some builds may need pre-build steps before building, e.g. `go generate`. 9 The `before` section allows for global hooks which will be executed before 10 the build is started. 11 12 The configuration is very simple, here is a complete example: 13 14 ```yml 15 # .goreleaser.yml 16 before: 17 hooks: 18 - make clean 19 - go generate ./... 20 ``` 21 22 If any of the hooks fails the build process is aborted.