github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/announce/webhook.md (about) 1 # WebHooks 2 3 > Since: v1.3 4 5 WebHooks are a way to receive notifications. 6 With this GoReleaser functionality, you can send events to any server 7 exposing a WebHook. 8 9 If your endpoints are not secure, you can use following environment variables to configure them: 10 11 - `BASIC_AUTH_HEADER_VALUE` like `Basic <base64(username:password)>` 12 - `BEARER_TOKEN_HEADER_VALUE` like `Bearer <token>` 13 14 Add following to your `.goreleaser.yaml` configuration to enable the WebHook functionality: 15 16 ```yaml 17 # .goreleaser.yaml 18 announce: 19 webhook: 20 # Whether its enabled or not. 21 enabled: true 22 23 # Check the certificate of the webhook. 24 skip_tls_verify: true 25 26 # Message template to use while publishing. 27 # 28 # Default: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' 29 # Templates: allowed 30 message_template: '{ "title": "Awesome project {{.Tag}} is out!"}' 31 32 # Content type to use. 33 # 34 # Default: 'application/json; charset=utf-8' 35 content_type: "application/json" 36 37 # Endpoint to send the webhook to. 38 endpoint_url: "https://example.com/webhook" 39 # Headers to send with the webhook. 40 # For example: 41 # headers: 42 # Authorization: "Bearer <token>" 43 headers: 44 User-Agent: "goreleaser" 45 46 ``` 47 48 !!! tip 49 Learn more about the [name template engine](/customization/templates/).