Skip to content

Commit 0b058e4

Browse files
committed
ci: fix release flow using goreleaser
1 parent 4022063 commit 0b058e4

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
version: latest
2828
args: --rm-dist
2929
env:
30-
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ release:
44
prerelease: auto
55
draft: true
66

7-
before:
8-
hooks:
9-
- make clean
10-
117
builds:
128
- main: ./main.go
139
id: "entropy"
@@ -23,8 +19,6 @@ builds:
2319
- windows
2420
goarch:
2521
- amd64
26-
- 386
27-
- arm
2822
- arm64
2923
env:
3024
- CGO_ENABLED=0
@@ -50,10 +44,10 @@ changelog:
5044
sort: asc
5145
filters:
5246
exclude:
53-
- '^docs:'
54-
- '^test:'
55-
- '^build:'
56-
- '^ci:'
47+
- '^docs'
48+
- '^test'
49+
- '^build'
50+
- '^ci'
5751

5852
dockers:
5953
- goos: linux

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ build: clean
4747
@CGO_ENABLED=0 go build -ldflags '-X "${NAME}/pkg/version.Version=${VERSION}" -X "${NAME}/pkg/version.Commit=${COMMIT}" -X "${NAME}/pkg/version.BuildTime=${BUILD_TIME}"' -o ${BUILD_DIR}/${EXE}
4848

4949
download:
50-
go mod download
51-
50+
@go mod download
5251

52+
setup:
53+
@go install github.com/vektra/mockery/[email protected]

0 commit comments

Comments
 (0)