Skip to content

Commit 079dcad

Browse files
authored
fix release announcer (#243)
1 parent 9123b3e commit 079dcad

File tree

2 files changed

+4
-29
lines changed

2 files changed

+4
-29
lines changed

.github/workflows/release-publisher.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
uses: goreleaser/goreleaser-action@master
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
39+
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
40+
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
3941
with:
4042
version: latest
4143
args: release

.goreleaser.yml

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,13 @@ builds:
1111
- windows_amd64
1212
binary: deleterious
1313
hooks:
14-
post:
15-
- cmd: ./goreleaser-post-hook.sh
16-
env:
17-
- BUILD_TARGET={{ .Target }}
18-
- ARTIFACT={{ .Path }}
19-
14+
post: ./goreleaser-post-hook.sh
2015

2116
checksum:
2217
name_template: 'checksums.txt'
2318

2419
sboms:
25-
- artifacts: source
26-
27-
announce:
28-
discord:
29-
# Whether its enabled or not.
30-
# Defaults to false.
31-
enabled: true
32-
33-
# Message template to use while publishing.
34-
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}`
35-
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }} or brew upgrade {{ .ProjectName }}'
36-
37-
# Set author of the embed.
38-
# Defaults to `GoReleaser`
39-
author: 'GoReleaser'
40-
41-
# Color code of the embed. You have to use decimal numeral system, not hexadecimal.
42-
# Defaults to `3888754` - the grey-ish from goreleaser
43-
color: ''
44-
45-
# URL to an image to use as the icon for the embed.
46-
# Defaults to `https://goreleaser.com/static/avatar.png`
47-
icon_url: ''
20+
- artifacts: archive
4821

4922
brews:
5023
- # Repository to push the tap to.

0 commit comments

Comments
 (0)