github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/announce/mastodon.md (about)

     1  # Mastodon
     2  
     3  > Since: v1.13
     4  
     5  For it to work, you'll need to create a new Mastodon app
     6  `https://social.yourdomain.tld/settings/applications/new` with `write:statuses`
     7  permissions, and set the following environment variables in your pipeline:
     8  
     9  - `MASTODON_CLIENT_ID`: *"Client key"*.
    10  - `MASTODON_CLIENT_SECRET`: *"Client secret"*.
    11  - `MASTODON_ACCESS_TOKEN`: *"Your access token"*.
    12  
    13  Then, you can add something like the following to your `.goreleaser.yaml`
    14  configuration file:
    15  
    16  ```yaml
    17  # .goreleaser.yaml
    18  announce:
    19    mastodon:
    20      # Whether its enabled or not.
    21      enabled: true
    22  
    23      # Message to use while publishing.
    24      #
    25      # Default: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
    26      # Templates: allowed
    27      message_template: 'Awesome project {{.Tag}} is out!'
    28  
    29      # Mastodon server URL.
    30      server: https://mastodon.social
    31  ```
    32  
    33  !!! tip
    34      Learn more about the [name template engine](/customization/templates/).