Skip to content

Commit 2595596

Browse files
committed
[HPR-1702] build: Add LICENSE file to release artifacts
1 parent ab62c87 commit 2595596

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.goreleaser.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ before:
1212
- go test ./...
1313
# Check plugin compatibility with required version of the Packer SDK
1414
- make plugin-check
15+
# Copy LICENSE file for inclusion in zip archive
16+
- cp LICENSE LICENSE.txt
1517
builds:
1618
# A separated build to run the packer-plugins-check only once for a linux_amd64 binary
1719
-
@@ -85,7 +87,8 @@ builds:
8587
archives:
8688
- format: zip
8789
files:
88-
- none*
90+
- "LICENSE.txt"
91+
8992
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
9093
checksum:
9194
name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'

0 commit comments

Comments
 (0)