mark/.goreleaser.yml
copilot-swe-agent[bot] 9a26f657c7 Fix goreleaser config to point builds to ./cmd/mark
Co-authored-by: mrueg <489370+mrueg@users.noreply.github.com>
2026-03-20 22:06:34 +01:00

63 lines
1.3 KiB
YAML

version: 2
before:
hooks:
- go mod download
builds:
- main: ./cmd/mark
env:
- CGO_ENABLED=0
gcflags:
- all=-trimpath={{.Env.GOPATH}}
goos:
- darwin
- linux
# windows fails with an error https://github.com/kovetskiy/mark/runs/5034726426?check_suite_focus=true
# - windows
goarch:
- amd64
- arm64
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
# Publish on Homebrew Tap
brews:
- name: mark
repository:
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 }}"
directory: Formula
homepage: "https://github.com/kovetskiy/mark"
description: "Sync your markdown files with Confluence pages."
license: "Apache 2.0"
install: |
bin.install "mark"
generate_completions_from_executable(bin/"mark", "completion")
test: |
system "#{bin}/mark", "version"