Skip to content

Commit 7af8d98

Browse files
committed
Added .goreleaser.yaml
1 parent 743b4f0 commit 7af8d98

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ veracode-js-packager
2424

2525
# test stuff
2626
test-output
27+
28+
dist/

.goreleaser.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
project_name: veracode-javascript-packager
2+
before:
3+
hooks:
4+
- go mod tidy
5+
builds:
6+
- env:
7+
- CGO_ENABLED=0
8+
goos:
9+
- linux
10+
- windows
11+
- darwin
12+
goarch:
13+
- amd64
14+
- arm64
15+
16+
archives:
17+
- format: tar.gz
18+
# this name template makes the OS and Arch compatible with the results of uname.
19+
name_template: >-
20+
{{ .ProjectName }}_
21+
{{- title .Os }}_
22+
{{- if eq .Arch "amd64" }}x86_64
23+
{{- else }}{{ .Arch }}{{ end }}
24+
{{- if .Arm }}v{{ .Arm }}{{ end }}
25+
# use zip for windows archives
26+
format_overrides:
27+
- goos: windows
28+
format: zip
29+
checksum:
30+
name_template: 'checksums.txt'
31+
snapshot:
32+
name_template: "{{ incpatch .Version }}-next"
33+
changelog:
34+
sort: asc
35+
filters:
36+
exclude:
37+
- '^docs:'
38+
- '^test:'

0 commit comments

Comments
 (0)