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
|
2024-07-25 23:18:07 +02:00
|
|
|
version: 2
|
2020-07-14 07:29:47 -05:00
|
|
|
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}}
|
2020-08-21 22:25:19 -04:00
|
|
|
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:'
|
2021-11-30 10:18:57 +01:00
|
|
|
|
|
|
|
# Publish on Homebrew Tap
|
|
|
|
brews:
|
|
|
|
-
|
|
|
|
name: mark
|
2024-07-19 17:22:24 +02:00
|
|
|
repository:
|
2021-11-30 10:18:57 +01:00
|
|
|
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 }}"
|
|
|
|
|
2024-07-19 17:22:24 +02:00
|
|
|
directory: Formula
|
2021-11-30 10:18:57 +01:00
|
|
|
|
|
|
|
homepage: "https://github.com/kovetskiy/mark"
|
|
|
|
description: "Sync your markdown files with Confluence pages."
|
|
|
|
license: "Apache 2.0"
|
|
|
|
|
|
|
|
test: |
|
|
|
|
system "#{bin}/program", "version"
|