Skip to content

Commit

Permalink
BUILD/MINOR: goreleaser: fix deprecation and release notes generation
Browse files Browse the repository at this point in the history
also use the format for package name as archive name

Signed-off-by: Vincent Gramer <[email protected]>
  • Loading branch information
vgramer authored and mjuraga committed Jul 27, 2023
1 parent 572e62d commit 42d05f7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# we have to fetch all history to be able to generate the release note. c.f. https://goreleaser.com/ci/actions/.
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand All @@ -18,6 +21,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist --skip-announce
args: release --clean --skip-announce
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 9 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ archives:
id: my-archive
builds:
- my-build
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
linux: Linux
darwin: Darwin
freebsd: FreeBSD
386: i386
amd64: x86_64
name_template: >-
{{.ProjectName}}_{{.Version}}_{{.Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE
- README.md
Expand Down Expand Up @@ -69,6 +67,10 @@ nfpms:
package_name: dataplaneapi
builds:
- my-build
file_name_template: >-
{{.ProjectName}}_{{.Version}}_{{.Os }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
vendor: HAProxy Technologies
homepage: https://github.com/haproxytech/dataplaneapi
maintainer: Marko Juraga <[email protected]>
Expand Down

0 comments on commit 42d05f7

Please sign in to comment.