From 81decfbda2748ccb5aa522fab6eb04d4ed0d8f2a Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Fri, 12 Apr 2024 11:26:13 -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 f9dbc171..4e2db89a 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'