Skip to content

Commit 8eebfa2

Browse files
authored
Fix goreleaser config (#102)
* Fix missing project name in goreleaser config * Remove snapshot mode in GH Actions - Was not used anyways
1 parent 30c79ae commit 8eebfa2

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

.github/workflows/go.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,6 @@ jobs:
2828
- name: Build
2929
run: go build -v .
3030

31-
- name: Run goreleaser in snapshot mode
32-
if: success() && ! startsWith(github.ref, 'refs/tags/v')
33-
uses: goreleaser/goreleaser-action@v4
34-
with:
35-
version: latest
36-
args: release --rm-dist --snapshot
37-
38-
- name: Upload assets for snapshots
39-
if: success() && ! startsWith(github.ref, 'refs/tags/v')
40-
uses: actions/upload-artifact@v3
41-
with:
42-
name: support-collector
43-
path: dist/*
44-
4531
- name: Run goreleaser in release mode
4632
if: success() && startsWith(github.ref, 'refs/tags/v')
4733
uses: goreleaser/goreleaser-action@v4

.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ release:
2323
archives:
2424
- format: binary
2525
name_template: >-
26-
{{- if eq .Arch "amd64" }}x86_64{{ end }}
26+
{{ .ProjectName }}_{{ .Tag }}_
2727
{{- if eq .Os "linux" }}Linux{{ end }}
2828
{{- if eq .Os "windows" }}Windows{{ end }}
2929
{{- if eq .Os "darwin" }}Darwin{{ end }}
30+
{{- if eq .Arch "amd64" }}_x86_64{{ end }}
3031
checksum:
3132
name_template: 'checksums.txt'
3233
snapshot:

0 commit comments

Comments
 (0)