github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/announce/twitter.md (about) 1 # Twitter 2 3 !!! warning 4 Twitter has [announced][tw] that API usage will no longer be free starting 5 Feb 9, 2023. 6 7 [tw]: https://twitter.com/TwitterDev/status/1621026986784337922 8 9 For it to work, you'll need to [create a new Twitter app](https://developer.twitter.com/en/portal/apps/new), and set 10 some environment variables on your pipeline: 11 12 - `TWITTER_CONSUMER_KEY` 13 - `TWITTER_CONSUMER_SECRET` 14 - `TWITTER_ACCESS_TOKEN` 15 - `TWITTER_ACCESS_TOKEN_SECRET` 16 17 Then, you can add something like the following to your `.goreleaser.yaml` config: 18 19 ```yaml 20 # .goreleaser.yaml 21 announce: 22 twitter: 23 # Whether its enabled or not. 24 enabled: 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: 'Awesome project {{.Tag}} is out!' 31 ``` 32 33 !!! tip 34 Learn more about the [name template engine](/customization/templates/).