Skip to content

Commit dccccb6

Browse files
committed
Setup goreleaser
1 parent 0bc00de commit dccccb6

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

.github/workflows/release.yml

+28-14
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,35 @@ on:
33
release:
44
types:
55
- created
6-
6+
7+
permissions:
8+
contents: write
9+
710
jobs:
8-
release:
9-
strategy:
10-
fail-fast: false
11-
matrix:
12-
goos: [linux, darwin]
11+
goreleaser:
1312
runs-on: ubuntu-latest
1413
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: 'stable'
23+
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
1729

18-
- name: Release binaries
19-
uses: mcuadros/go-release-action@master
20-
with:
21-
github_token: ${{ secrets.GITHUB_TOKEN }}
22-
goos: ${{ matrix.goos }}
23-
goarch: amd64
30+
- name: Run GoReleaser
31+
uses: goreleaser/goreleaser-action@v5
32+
with:
33+
distribution: goreleaser
34+
version: latest
35+
args: release --clean
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)