mirror of
https://github.com/antoniomika/sish.git
synced 2025-12-03 20:33:34 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
version: 2
|
|
|
|
before:
|
|
hooks:
|
|
- go generate ./...
|
|
- go test ./...
|
|
builds:
|
|
- ldflags:
|
|
- '{{ $gitURL := replace .GitURL ".git" "" }}{{ $sshRepo := replace $gitURL "git@github.com:" "" }}{{ $httpRepo := replace $sshRepo "https://github.com/" "" }}-s -w -X github.com/{{ $httpRepo }}/cmd.Version={{ .Version }} -X github.com/{{ $httpRepo }}/cmd.Commit={{ .Commit }} -X github.com/{{ $httpRepo }}/cmd.Date={{ .Date }}'
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm
|
|
- arm64
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|
|
- Merge pull request
|
|
- Merge branch
|
|
checksum:
|
|
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
|
|
release:
|
|
prerelease: auto
|
|
archives:
|
|
- name_template: '{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
|
|
wrap_in_directory: true
|
|
format_overrides:
|
|
- goos: windows
|
|
formats:
|
|
- zip
|
|
files:
|
|
- LICENSE*
|
|
- README*
|
|
- deploy/**/*
|
|
- templates/*
|
|
- templates/**/*
|