Publish signed releases for tags

This commit is contained in:
Paul Tyng
2020-05-17 13:28:46 -04:00
parent db255773e6
commit 68ad901789
2 changed files with 46 additions and 36 deletions

View File

@@ -1,15 +1,9 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# you may remove this if you don't use vgo
- go mod tidy
# you may remove this if you don't need go generate
# - go generate ./...
builds:
- env:
- CGO_ENABLED=0
binary: terraform-provider-unifi_v{{.Version}}
goos:
- freebsd
- openbsd
@@ -25,46 +19,27 @@ builds:
ignore:
- goos: darwin
goarch: '386'
- goos: darwin
goarch: arm
- goos: darwin
goarch: arm64
- goos: openbsd
goarch: arm
- goos: openbsd
goarch: arm64
- goos: solaris
goarch: arm
- goos: solaris
goarch: arm64
- goos: solaris
goarch: '386'
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
replacements:
# darwin: Darwin
# linux: Linux
# windows: Windows
# 386: i386
# amd64: x86_64
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
# signs:
# - artifacts: checksum
signs:
- artifacts: checksum
args:
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
draft: true
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
skip: true
# sort: asc
# filters:
# exclude:
# - '^docs:'
# - '^test:'
skip: true