Skip to content

Commit 4a33c6b

Browse files
committed
add goreleaser action
1 parent 8c491a5 commit 4a33c6b

File tree

2 files changed

+37
-4
lines changed

2 files changed

+37
-4
lines changed

.github/workflows/goreleaser.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
-
18+
name: Set up Go
19+
uses: actions/setup-go@v2
20+
-
21+
name: Run GoReleaser
22+
uses: goreleaser/goreleaser-action@v2
23+
with:
24+
# either 'goreleaser' (default) or 'goreleaser-pro'
25+
distribution: goreleaser
26+
version: latest
27+
args: release --rm-dist
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
31+
AUR_KEY: ${{ secrets.AUR_KEY }}
32+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
33+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

.goreleaser.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ brews:
6868
branch: master
6969

7070
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
71-
#token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
71+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
7272

7373
# Template for the url which is determined by the given Token (github, gitlab or gitea)
7474
#
@@ -87,9 +87,9 @@ brews:
8787

8888
# Git author used to commit to the repository.
8989
# Defaults are shown.
90-
# commit_author:
91-
# name: goreleaserbot
92-
# email: goreleaser@carlosbecker.com
90+
commit_author:
91+
name: Johannes Bruederl
92+
email: johannes.bruederl@gmail.com
9393

9494
# The project name and current git tag are used in the format string.
9595
# commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"

0 commit comments

Comments
 (0)