2021-09-27 22:43:00 -03:00
|
|
|
# Discord
|
|
|
|
|
|
|
|
To use [Discord](https://discord.com/), you need
|
|
|
|
to [create a Webhook](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks), and set following
|
|
|
|
environment variables on your pipeline:
|
|
|
|
|
|
|
|
- `DISCORD_WEBHOOK_ID`
|
|
|
|
- `DISCORD_WEBHOOK_TOKEN`
|
|
|
|
|
2021-12-23 01:52:01 +01:00
|
|
|
After this, you can add following section to your `.goreleaser.yaml` config:
|
2021-09-27 22:43:00 -03:00
|
|
|
|
|
|
|
```yaml
|
2021-12-23 01:52:01 +01:00
|
|
|
# .goreleaser.yaml
|
2021-09-27 22:43:00 -03:00
|
|
|
announce:
|
|
|
|
discord:
|
|
|
|
# Whether its enabled or not.
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
# Message template to use while publishing.
|
2023-04-02 17:16:21 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'.
|
|
|
|
# Templates: allowed.
|
|
|
|
message_template: "Awesome project {{.Tag}} is out!"
|
2021-09-27 22:43:00 -03:00
|
|
|
|
|
|
|
# Set author of the embed.
|
2023-04-02 17:16:21 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: 'GoReleaser'.
|
|
|
|
author: ""
|
2021-09-27 22:43:00 -03:00
|
|
|
|
|
|
|
# Color code of the embed. You have to use decimal numeral system, not hexadecimal.
|
2023-04-02 17:16:21 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: '3888754' (the grey-ish from GoReleaser).
|
|
|
|
color: ""
|
2021-09-27 22:43:00 -03:00
|
|
|
|
|
|
|
# URL to an image to use as the icon for the embed.
|
2023-04-02 17:16:21 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: 'https://goreleaser.com/static/avatar.png'.
|
|
|
|
icon_url: ""
|
2021-09-27 22:43:00 -03:00
|
|
|
```
|
|
|
|
|
|
|
|
!!! tip
|
2024-06-19 11:44:22 -03:00
|
|
|
|
2021-09-27 22:43:00 -03:00
|
|
|
Learn more about the [name template engine](/customization/templates/).
|