mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-26 04:22:05 +02:00
d32454e279
* feat: add telegram announcer * chore: remove hooks and use the Send method of the bot API * chore: add docs and default config * chore: add docs and default config * chore: fix tabs * chore: add docs * chore: fix pr comments * chore: fix pr comments * chore: fix pr comments * chore: add missing links in docs
818 B
818 B
Telegram
For it to work, you'll need to create a new Telegram app, and set some environment variables on your pipeline:
TELEGRAM_TOKEN
Also you need to know your channel's chat ID to talk with.
Then, you can add something like the following to your .goreleaser.yml
config:
# .goreleaser.yml
announce:
telegram:
# Whether its enabled or not.
# Defaults to false.
enabled: true
# Integer representation of your channel
chat_id: 123456
# Message template to use while publishing.
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .GitURL }}/releases/tag/{{ .Tag }}`
message_template: 'Awesome project {{.Tag}} is out!'
!!! tip Learn more about the name template engine.