-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
52 lines (47 loc) · 1.04 KB
/
.goreleaser.yaml
File metadata and controls
52 lines (47 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# .goreleaser.yaml
project_name: html-web-crawler
version: 2
builds:
# Build configuration for Linux
- id: linux
ldflags: &ldflags
- -s -w -X github.com/gtsteffaniak/html-web-crawler/version.Version=v{{ .Version }} -X github.com/gtsteffaniak/html-web-crawler/version.CommitSHA={{ .ShortCommit }}
main: main.go
binary: html-web-crawler
goos:
- linux
goarch:
- amd64
- arm64
goarm:
- "6"
- "7"
# Build configuration for macOS
- id: darwin
ldflags: *ldflags
main: main.go
binary: html-web-crawler
goos:
- darwin
goarch:
- amd64
- arm64
# Build configuration for Windows
- id: windows
ldflags: *ldflags
main: main.go
binary: html-web-crawler.exe
goos:
- windows
goarch:
- amd64
archives:
- name_template: >
{{- if eq .Os "windows" -}}
{{.ProjectName}}
{{- else -}}
{{.Os}}-{{.Arch}}{{if .Arm}}v{{.Arm}}{{end}}-{{.ProjectName}}
{{- end -}}
formats: [ 'binary' ]
checksum:
disable: true