Skip to content

Commit a9e5dbe

Browse files
authored
Correct goreleaser path (#518)
1 parent dcf8939 commit a9e5dbe

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,4 @@ jobs:
7171
go-version-file: "go.mod"
7272

7373
- name: Run GoReleaser
74-
uses: goreleaser/goreleaser-action@v6
75-
with:
76-
version: latest
77-
args: --skip=publish --snapshot --clean
74+
run: make test-release

.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
builds:
23
- skip: true
34
main: ./cmd/generic/main.go
@@ -6,7 +7,7 @@ builds:
67
checksum:
78
name_template: 'checksums.txt'
89
snapshot:
9-
name_template: "{{ .Tag }}-next"
10+
version_template: "{{ .Tag }}-next"
1011
release:
1112
extra_files:
1213
- glob: ./dependency-licenses.csv

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ build-docker:
3535
build-podman:
3636
podman build --build-arg upx_brute=" " -t batch-job-controller .
3737

38-
release: tb.semver
38+
release: tb.semver tb.goreleaser
3939
@version=$$($(TB_SEMVER)); \
4040
git tag -s $$version -m"Release $$version"
41-
goreleaser --clean
41+
$(TB_GORELEASER) --clean
4242

43-
test-release:
44-
goreleaser --skip=publish --snapshot --clean
43+
test-release: tb.goreleaser
44+
$(TB_GORELEASER) --skip=publish --snapshot --clean
4545

4646
tools: tb.mockgen tb.ginkgo helm
4747

0 commit comments

Comments
 (0)