2021-09-27 22:43:00 -03:00
|
|
|
# SMTP
|
|
|
|
|
|
|
|
For it to work, you'll need to set some environment variables on your pipeline:
|
|
|
|
|
|
|
|
- `SMTP_PASSWORD`
|
|
|
|
|
2021-12-23 01:52:01 +01:00
|
|
|
Then, you can add something like the following to your `.goreleaser.yaml` config:
|
2021-09-27 22:43:00 -03:00
|
|
|
|
2024-11-29 11:17:45 -03:00
|
|
|
```yaml title=".goreleaser.yaml"
|
2021-09-27 22:43:00 -03:00
|
|
|
announce:
|
|
|
|
smtp:
|
|
|
|
# Whether its enabled or not.
|
|
|
|
enabled: true
|
|
|
|
|
2023-03-01 01:38:53 -03:00
|
|
|
# SMTP Host.
|
2023-04-02 17:16:21 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: '$SMTP_HOST'.
|
2021-09-27 22:43:00 -03:00
|
|
|
host: "smtp.gmail.com"
|
|
|
|
|
|
|
|
# SMTP Port
|
2023-04-02 17:16:21 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: '$SMTP_PORT'.
|
2021-09-27 22:43:00 -03:00
|
|
|
port: 587
|
|
|
|
|
|
|
|
# Sender of the email
|
|
|
|
from: ""
|
|
|
|
|
|
|
|
# Receivers of the email
|
|
|
|
to:
|
|
|
|
- ""
|
|
|
|
- ""
|
|
|
|
|
|
|
|
# Owner of the email
|
2023-04-02 17:16:21 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: '$SMTP_USERNAME'.
|
2021-09-27 22:43:00 -03:00
|
|
|
username: ""
|
|
|
|
|
2023-04-02 17:16:21 -03:00
|
|
|
# Body to use within the email.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: 'You can view details from: {{ .ReleaseURL }}'.
|
|
|
|
# Templates: allowed.
|
|
|
|
body_template: "https://github.com/goreleaser/goreleaser/releases/tag/{{ .Tag }}"
|
2021-09-27 22:43:00 -03:00
|
|
|
|
|
|
|
# Subject template to use within the email subject.
|
2023-04-02 17:16:21 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: '{{ .ProjectName }} {{ .Tag }} is out!'.
|
|
|
|
# Templates: allowed.
|
|
|
|
subject_template: "GoReleaser {{ .Tag }} was just released!"
|
2021-09-27 22:43:00 -03:00
|
|
|
```
|
|
|
|
|
2024-07-17 10:56:36 -03:00
|
|
|
<!-- md:templates -->
|