mark/.goreleaser.yml

62 lines
1.2 KiB
YAML
Raw Normal View History

2024-07-25 23:18:07 +02:00
version: 2
2020-07-14 07:29:47 -05:00
before:
hooks:
- 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:
2025-06-12 13:29:24 +02:00
version_template: "{{ .Tag }}-next"
2020-07-14 07:29:47 -05:00
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
# Publish on Homebrew Tap
brews:
2025-06-12 13:29:24 +02:00
- name: mark
repository:
owner: kovetskiy
name: homebrew-mark
branch: master
2025-06-12 13:29:24 +02:00
commit_author:
name: Egor Kovetskiy
email: e.kovetskiy@gmail.com
2025-06-12 13:29:24 +02:00
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
2025-06-12 13:29:24 +02:00
directory: Formula
2025-06-12 13:29:24 +02:00
homepage: "https://github.com/kovetskiy/mark"
description: "Sync your markdown files with Confluence pages."
license: "Apache 2.0"
2025-06-12 13:29:24 +02:00
install: |
bin.install "mark"
2025-06-12 13:40:43 +02:00
generate_completions_from_executable(bin/"mark", "completion")
2025-06-12 13:29:24 +02:00
test: |
system "#{bin}/mark", "version"