From 079dcad2bf109102a96445540a1bbb2128fa58a1 Mon Sep 17 00:00:00 2001 From: Elliot Murphy Date: Tue, 21 Dec 2021 23:38:26 -0500 Subject: [PATCH] fix release announcer (#243) --- .github/workflows/release-publisher.yml | 2 ++ .goreleaser.yml | 31 ++----------------------- 2 files changed, 4 insertions(+), 29 deletions(-) diff --git a/.github/workflows/release-publisher.yml b/.github/workflows/release-publisher.yml index 5ea5a4e6..55adcbc3 100644 --- a/.github/workflows/release-publisher.yml +++ b/.github/workflows/release-publisher.yml @@ -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 diff --git a/.goreleaser.yml b/.goreleaser.yml index 9e6f1911..1bd69030 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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.