diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 9f42493..0a9e582 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -4,6 +4,10 @@ on: push: tags: - 'v*' + pull_request: + paths: + - .github/workflows/goreleaser.yml + - .goreleaser.yaml permissions: contents: write diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 406169d..429bffb 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -12,6 +12,19 @@ builds: - arm64 env: - CGO_ENABLED=0 +- id: "kubectl-tmc" + main: ./cmd/kubectl-tmc + binary: bin/kubectl-tmc + ldflags: + - "{{ .Env.LDFLAGS }}" + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 + env: + - CGO_ENABLED=0 - id: "kubectl-workload" main: ./cmd/kubectl-workload binary: bin/kubectl-workload @@ -28,14 +41,13 @@ builds: archives: - id: tmc builds: - - tmc + - kubectl-tmc + - kubectl-workload - id: kubectl-tmc-plugin builds: - kubectl-tmc - kubectl-workload name_template: "kubectl-tmc-plugin_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - files: - - bin/kubectl-workloads release: draft: true prerelease: auto