Skip to content

Commit 42ede1d

Browse files
authored
Merge pull request #18 from mjudeikis/reduce.goreleaser
🌱 attempt to fix build chanining
2 parents ad2ca35 + b890f06 commit 42ede1d

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/goreleaser.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
pull_request:
8+
paths:
9+
- .github/workflows/goreleaser.yml
10+
- .goreleaser.yaml
711

812
permissions:
913
contents: write

.goreleaser.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ builds:
1212
- arm64
1313
env:
1414
- CGO_ENABLED=0
15+
- id: "kubectl-tmc"
16+
main: ./cmd/kubectl-tmc
17+
binary: bin/kubectl-tmc
18+
ldflags:
19+
- "{{ .Env.LDFLAGS }}"
20+
goos:
21+
- linux
22+
- darwin
23+
goarch:
24+
- amd64
25+
- arm64
26+
env:
27+
- CGO_ENABLED=0
1528
- id: "kubectl-workload"
1629
main: ./cmd/kubectl-workload
1730
binary: bin/kubectl-workload
@@ -28,14 +41,13 @@ builds:
2841
archives:
2942
- id: tmc
3043
builds:
31-
- tmc
44+
- kubectl-tmc
45+
- kubectl-workload
3246
- id: kubectl-tmc-plugin
3347
builds:
3448
- kubectl-tmc
3549
- kubectl-workload
3650
name_template: "kubectl-tmc-plugin_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
37-
files:
38-
- bin/kubectl-workloads
3951
release:
4052
draft: true
4153
prerelease: auto

0 commit comments

Comments
 (0)