mark/.goreleaser.yml

61 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2020-07-14 07:29:47 -05:00
# 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 go modules.
- go mod download
builds:
- env:
- CGO_ENABLED=0
2020-07-14 07:33:18 -05:00
gcflags:
- all=-trimpath={{.Env.GOPATH}}
goos:
- darwin
- linux
2022-02-02 16:06:19 +06:00
# windows fails with an error https://github.com/kovetskiy/mark/runs/5034726426?check_suite_focus=true
# - windows
2023-05-03 18:55:25 +02:00
goarch:
- amd64
- arm64
2020-07-14 07:29:47 -05:00
archives:
2023-07-05 17:40:55 +02:00
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
2020-07-14 07:29:47 -05:00
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
# Publish on Homebrew Tap
brews:
-
name: mark
tap:
owner: kovetskiy
name: homebrew-mark
branch: master
commit_author:
name: Egor Kovetskiy
email: e.kovetskiy@gmail.com
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
homepage: "https://github.com/kovetskiy/mark"
description: "Sync your markdown files with Confluence pages."
license: "Apache 2.0"
test: |
system "#{bin}/program", "version"