2022-11-17 17:40:00 -06:00
|
|
|
# Mastodon
|
|
|
|
|
2022-11-20 13:20:26 -03:00
|
|
|
For it to work, you'll need to create a new Mastodon app
|
|
|
|
`https://social.yourdomain.tld/settings/applications/new` with `write:statuses`
|
|
|
|
permissions, and set the following environment variables in your pipeline:
|
2022-11-17 17:40:00 -06:00
|
|
|
|
2024-06-19 11:44:22 -03:00
|
|
|
- `MASTODON_CLIENT_ID`: _"Client key"_.
|
|
|
|
- `MASTODON_CLIENT_SECRET`: _"Client secret"_.
|
|
|
|
- `MASTODON_ACCESS_TOKEN`: _"Your access token"_.
|
2022-11-17 17:40:00 -06:00
|
|
|
|
2022-11-20 13:20:26 -03:00
|
|
|
Then, you can add something like the following to your `.goreleaser.yaml`
|
|
|
|
configuration file:
|
2022-11-17 17:40:00 -06:00
|
|
|
|
2024-11-29 11:17:45 -03:00
|
|
|
```yaml title=".goreleaser.yaml"
|
2022-11-17 17:40:00 -06:00
|
|
|
announce:
|
|
|
|
mastodon:
|
|
|
|
# Whether its enabled or not.
|
|
|
|
enabled: true
|
|
|
|
|
2023-04-02 17:16:21 -03:00
|
|
|
# Message to use while publishing.
|
|
|
|
#
|
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!"
|
2022-11-17 20:54:57 -03:00
|
|
|
|
|
|
|
# Mastodon server URL.
|
|
|
|
server: https://mastodon.social
|
2022-11-17 17:40:00 -06:00
|
|
|
```
|
|
|
|
|
2024-07-17 10:56:36 -03:00
|
|
|
<!-- md:templates -->
|