oh-my-posh/src/.goreleaser.yml
2022-03-29 19:46:23 +02:00

49 lines
1,022 B
YAML

# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- go mod tidy
builds:
-
binary: "posh-{{ .Os }}-{{ .Arch }}"
no_unique_dist_dir: true
flags:
- -a
ldflags:
- -s -w -X main.Version={{.Version}} -extldflags "-static"
tags:
- netgo
- osusergo
- static_build
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
- 386
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: 386
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
hooks:
post:
- sh -c "cosign sign-blob --key $COSIGN_KEY_LOCATION {{ .Path }} > dist/{{ .Name }}.sig"
archives:
- id: oh-my-posh
format: binary
name_template: "posh-{{ .Os }}-{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
changelog:
skip: true