Skip to content

Commit

Permalink
Change the version template for releases
Browse files Browse the repository at this point in the history
Removes the commit hash from version string. Upgrades
goreleaser to v2
  • Loading branch information
gorkem committed Aug 2, 2024
1 parent 2eebd55 commit 62aed0f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/platform-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.0.0
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 #v6.0.0
with:
version: latest
distribution: goreleaser
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
go-version-file: 'go.mod'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.0.0
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 #v6.0.0
with:
version: latest
distribution: goreleaser
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
go-version-file: 'go.mod'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.0.0
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 #v6.0.0
with:
version: latest
distribution: goreleaser
Expand Down
5 changes: 2 additions & 3 deletions .goreleaser.darwin.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1
version: 2

project_name: kitops

Expand Down Expand Up @@ -36,7 +36,6 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
rlcp: true
files:
- LICENSE
- README.md
Expand All @@ -46,5 +45,5 @@ git:
- "next"

snapshot:
name_template: "{{ .Version }}-{{ .ShortCommit }}"
name_template: "{{ .Version }}"

5 changes: 2 additions & 3 deletions .goreleaser.linux.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1
version: 2

project_name: kitops

Expand Down Expand Up @@ -28,7 +28,6 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
rlcp: true
files:
- LICENSE
- README.md
Expand All @@ -38,4 +37,4 @@ git:
- "next"

snapshot:
name_template: "{{ .Version }}-{{ .ShortCommit }}"
name_template: "{{ .Version }}"
5 changes: 2 additions & 3 deletions .goreleaser.windows.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1
version: 2

project_name: kitops

Expand Down Expand Up @@ -28,10 +28,9 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
rlcp: true
files:
- LICENSE
- README.md

snapshot:
name_template: "{{ .Version }}-{{ .ShortCommit }}"
name_template: "{{ .Version }}"

0 comments on commit 62aed0f

Please sign in to comment.