From 196a3faae551e748a13b2ecc3c1ce59534b25c5c Mon Sep 17 00:00:00 2001 From: mrz1836 Date: Tue, 28 Sep 2021 08:26:05 -0400 Subject: [PATCH] Added announce options, godoc sync --- .goreleaser.yml | 57 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 7580a49..4fbe752 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,6 @@ # Make sure to check the documentation at http://goreleaser.com # --------------------------- -# GENERAL +# General # --------------------------- before: hooks: @@ -12,16 +12,67 @@ changelog: filters: exclude: - '^.github:' + - '^.vscode:' - '^test:' # --------------------------- -# BUILDER +# Publishers +# --------------------------- +publishers: + - name: "Publish GoDocs" + cmd: make godocs + +# --------------------------- +# Builder # --------------------------- build: skip: true + # --------------------------- # Github Release # --------------------------- release: prerelease: true - name_template: "Release v{{.Version}}" \ No newline at end of file + name_template: "Release v{{.Version}}" + +# --------------------------- +# Announce +# --------------------------- +announce: + + # See more at: https://goreleaser.com/customization/announce/#slack + slack: + enabled: true + message_template: '{{ .ProjectName }} {{ .Tag }} is out! Changelog: https://github.com/BitcoinSchema/{{ .ProjectName }}/releases/tag/{{ .Tag }}' + channel: '#test_slack' + # username: '' + # icon_emoji: '' + # icon_url: '' + + # See more at: https://goreleaser.com/customization/announce/#twitter + twitter: + enabled: false + message_template: '{{ .ProjectName }} {{ .Tag }} is out!' + + # See more at: https://goreleaser.com/customization/announce/#discord + discord: + enabled: false + message_template: '{{ .ProjectName }} {{ .Tag }} is out!' + # Defaults to `GoReleaser` + author: '' + # Defaults to `3888754` - the grey-ish from goreleaser + color: '' + # Defaults to `https://goreleaser.com/static/avatar.png` + icon_url: '' + + # See more at: https://goreleaser.com/customization/announce/#reddit + reddit: + enabled: false + # Application ID for Reddit Application + application_id: "" + # Username for your Reddit account + username: "" + # Defaults to `{{ .GitURL }}/releases/tag/{{ .Tag }}` + # url_template: 'https://github.com/BitcoinSchema/{{ .ProjectName }}/releases/tag/{{ .Tag }}' + # Defaults to `{{ .ProjectName }} {{ .Tag }} is out!` + title_template: '{{ .ProjectName }} {{ .Tag }} is out!'