2021-09-28 03:43:00 +02:00
|
|
|
# Reddit
|
|
|
|
|
|
|
|
For it to work, you'll need to [create a new Reddit app](https://www.reddit.com/prefs/apps), and set some environment
|
|
|
|
variables on your pipeline:
|
|
|
|
|
|
|
|
- `REDDIT_SECRET`
|
|
|
|
- `REDDIT_PASSWORD`
|
|
|
|
|
2021-12-23 02:52:01 +02:00
|
|
|
Then, you can add something like the following to your `.goreleaser.yaml` config:
|
2021-09-28 03:43:00 +02:00
|
|
|
|
|
|
|
```yaml
|
2021-12-23 02:52:01 +02:00
|
|
|
# .goreleaser.yaml
|
2021-09-28 03:43:00 +02:00
|
|
|
announce:
|
|
|
|
reddit:
|
|
|
|
# Whether its enabled or not.
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
# Application ID for Reddit Application
|
|
|
|
application_id: ""
|
|
|
|
|
|
|
|
# Username for your Reddit account
|
|
|
|
username: ""
|
|
|
|
|
|
|
|
# URL template to use while publishing.
|
2023-04-02 22:16:21 +02:00
|
|
|
#
|
|
|
|
# Default: '{{ .ReleaseURL }}'
|
|
|
|
# Templates: allowed
|
2021-09-28 03:43:00 +02:00
|
|
|
url_template: 'https://github.com/goreleaser/goreleaser/releases/tag/{{ .Tag }}'
|
|
|
|
|
|
|
|
# Title template to use while publishing.
|
2023-04-02 22:16:21 +02:00
|
|
|
#
|
|
|
|
# Default: '{{ .ProjectName }} {{ .Tag }} is out!'
|
|
|
|
# Templates: allowed
|
2021-09-28 03:43:00 +02:00
|
|
|
title_template: ''GoReleaser {{ .Tag }} was just released!''
|
|
|
|
```
|
|
|
|
|
|
|
|
!!! tip
|
|
|
|
Learn more about the [name template engine](/customization/templates/).
|