71 lines
1.4 KiB
YAML
71 lines
1.4 KiB
YAML
project_name: jira
|
|
|
|
release:
|
|
prerelease: auto
|
|
name_template: "v{{.Version}}"
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- <<: &build_defaults
|
|
binary: bin/jira
|
|
main: ./cmd/jira
|
|
ldflags:
|
|
- -s -w
|
|
- -X github.com/ankitpokhrel/jira-cli/internal/version.Version={{.Version}}
|
|
- -X github.com/ankitpokhrel/jira-cli/internal/version.GitCommit={{.Commit}}
|
|
- -X github.com/ankitpokhrel/jira-cli/internal/version.BuildDate={{time "2006-01-02"}}"
|
|
env:
|
|
- CGO_ENABLED=0
|
|
id: macOS
|
|
goos: [darwin]
|
|
goarch: [amd64, arm64]
|
|
|
|
- <<: *build_defaults
|
|
id: linux
|
|
goos: [linux]
|
|
goarch: [386, arm, amd64, arm64]
|
|
|
|
- <<: *build_defaults
|
|
id: windows
|
|
goos: [windows]
|
|
goarch: [amd64]
|
|
|
|
archives:
|
|
- id: nix
|
|
builds: [macOS, linux]
|
|
<<: &archive_defaults
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
|
wrap_in_directory: true
|
|
replacements:
|
|
darwin: macOS
|
|
386: i386
|
|
amd64: x86_64
|
|
format: tar.gz
|
|
files:
|
|
- LICENSE
|
|
|
|
- id: windows
|
|
builds: [windows]
|
|
<<: *archive_defaults
|
|
wrap_in_directory: false
|
|
format: zip
|
|
files:
|
|
- LICENSE
|
|
|
|
checksum:
|
|
name_template: 'checksums.txt'
|
|
algorithm: sha256
|
|
|
|
changelog:
|
|
skip: false
|
|
sort: desc
|
|
filters:
|
|
exclude:
|
|
- '^doc:'
|
|
- '^dev:'
|
|
- '^build:'
|
|
- '^ci:'
|