github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/announce/discord.md (about)

     1  # Discord
     2  
     3  To use [Discord](https://discord.com/), you need
     4  to [create a Webhook](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks), and set following
     5  environment variables on your pipeline:
     6  
     7  - `DISCORD_WEBHOOK_ID`
     8  - `DISCORD_WEBHOOK_TOKEN`
     9  
    10  After this, you can add following section to your `.goreleaser.yaml` config:
    11  
    12  ```yaml
    13  # .goreleaser.yaml
    14  announce:
    15    discord:
    16      # Whether its enabled or not.
    17      enabled: true
    18  
    19      # Message template to use while publishing.
    20      #
    21      # Default: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
    22      # Templates: allowed
    23      message_template: 'Awesome project {{.Tag}} is out!'
    24  
    25      # Set author of the embed.
    26      #
    27      # Default: 'GoReleaser'
    28      author: ''
    29  
    30      # Color code of the embed. You have to use decimal numeral system, not hexadecimal.
    31      #
    32      # Default: '3888754' (the grey-ish from GoReleaser)
    33      color: ''
    34  
    35      # URL to an image to use as the icon for the embed.
    36      #
    37      # Default: 'https://goreleaser.com/static/avatar.png'
    38      icon_url: ''
    39  ```
    40  
    41  !!! tip
    42      Learn more about the [name template engine](/customization/templates/).