Skip to content

Commit d1cf9b6

Browse files
committed
Workflow: add goreleaser
1 parent 139946b commit d1cf9b6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ on:
55
- "*"
66

77
jobs:
8+
goreleaser:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
# Allow goreleaser to access older tag information.
14+
fetch-depth: 0
15+
- uses: actions/setup-go@v4
16+
with:
17+
go-version-file: 'go.mod'
18+
cache: true
19+
- name: Run GoReleaser
20+
uses: goreleaser/goreleaser-action@v5
21+
with:
22+
args: release --rm-dist
23+
env:
24+
# GitHub sets the GITHUB_TOKEN secret automatically.
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
827
publish-docker-image:
928
runs-on: ubuntu-latest
1029
steps:

0 commit comments

Comments
 (0)