Skip to content

Commit

Permalink
fix release announcer (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
statik authored Dec 22, 2021
1 parent 9123b3e commit 079dcad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release-publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
uses: goreleaser/goreleaser-action@master
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
with:
version: latest
args: release
31 changes: 2 additions & 29 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,13 @@ builds:
- windows_amd64
binary: deleterious
hooks:
post:
- cmd: ./goreleaser-post-hook.sh
env:
- BUILD_TARGET={{ .Target }}
- ARTIFACT={{ .Path }}

post: ./goreleaser-post-hook.sh

checksum:
name_template: 'checksums.txt'

sboms:
- artifacts: source

announce:
discord:
# Whether its enabled or not.
# Defaults to false.
enabled: true

# Message template to use while publishing.
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}`
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }} or brew upgrade {{ .ProjectName }}'

# Set author of the embed.
# Defaults to `GoReleaser`
author: 'GoReleaser'

# Color code of the embed. You have to use decimal numeral system, not hexadecimal.
# Defaults to `3888754` - the grey-ish from goreleaser
color: ''

# URL to an image to use as the icon for the embed.
# Defaults to `https://goreleaser.com/static/avatar.png`
icon_url: ''
- artifacts: archive

brews:
- # Repository to push the tap to.
Expand Down

0 comments on commit 079dcad

Please sign in to comment.