forked from waynezhang/foto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
40 lines (39 loc) · 984 Bytes
/
.goreleaser.yml
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
project_name: foto
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: .
binary: foto
ldflags:
- -s -w
- -X github.com/waynezhang/foto/internal/cmd.Version={{.Version}}
- -X github.com/waynezhang/foto/internal/cmd.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
archives:
- name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
brews:
- tap:
owner: waynezhang
name: homebrew-tap
commit_author:
name: waynezhang
email: [email protected]
homepage: "https://github.com/waynezhang/foto"
description: "Yet another another publishing tool for minimalist photographers."
license: "MIT License"
skip_upload: auto
release:
prerelease: auto