From 253525ea9fb602abb7a0532126b3029a8d61829a Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Fri, 12 Apr 2024 11:25:56 -0400 Subject: [PATCH] [HPR-1702] build: Add LICENSE file to release artifacts --- .goreleaser.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index f9dbc17..4e2db89 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -12,6 +12,8 @@ before: - go test ./... # Check plugin compatibility with required version of the Packer SDK - make plugin-check + # Copy LICENSE file for inclusion in zip archive + - cp LICENSE LICENSE.txt builds: # A separated build to run the packer-plugins-check only once for a linux_amd64 binary - @@ -85,7 +87,8 @@ builds: archives: - format: zip files: - - none* + - "LICENSE.txt" + name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}' checksum: name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'