From ed50d399b63d6373e107b9f1220496ddbfff2f51 Mon Sep 17 00:00:00 2001 From: Sandeep Singh Date: Fri, 6 Jan 2023 18:34:12 +0530 Subject: [PATCH] workflow updates (#926) --- .github/workflows/release-binary.yml | 6 ++++-- .goreleaser.yml | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml index 77359fd..a51fe4e 100644 --- a/.github/workflows/release-binary.yml +++ b/.github/workflows/release-binary.yml @@ -1,9 +1,9 @@ name: 🎉 Release Binary on: - create: + push: tags: - - v* + - '*' workflow_dispatch: jobs: @@ -29,3 +29,5 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}" + DISCORD_WEBHOOK_ID: "${{ secrets.DISCORD_WEBHOOK_ID }}" + DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}" \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 7d5bd2d..78f2618 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -39,4 +39,8 @@ announce: enabled: true channel: '#release' username: GoReleaser - message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' \ No newline at end of file + message_template: 'New Release: {{ .ProjectName }} {{ .Tag }} is published! Check it out at {{ .ReleaseURL }}' + + discord: + enabled: true + message_template: '**New Release: {{ .ProjectName }} {{.Tag}}** is published! Check it out at {{ .ReleaseURL }}' \ No newline at end of file