-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
86 lines (76 loc) · 2.56 KB
/
Copy path.goreleaser.yaml
File metadata and controls
86 lines (76 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
# if you don't do these things before calling goreleaser, it might be a
# good idea to do them here:
- rustup default stable
- cargo install --locked cargo-zigbuild
- cargo fetch --locked
builds:
- builder: rust
flags:
- --release
targets:
- x86_64-unknown-linux-gnu
- x86_64-apple-darwin
- x86_64-pc-windows-gnu
- aarch64-unknown-linux-gnu
- aarch64-apple-darwin
archives:
- formats: [tar.gz]
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
formats: [zip]
homebrew_casks:
- name: marathon
repository:
owner: a-poor
name: homebrew-tap
homepage: "https://github.com/a-poor/marathon"
description: "CLI/TUI for viewing, managing, and running markdown runbooks"
# On `brew install`, Homebrew runs the staged binary as
# `marathon completions <shell>` to generate completions on the user's
# machine. No shell_parameter_format: the default appends the bare shell
# name as a positional arg, which is what our clap subcommand expects.
# (`:clap` would instead set COMPLETE=… for clap's dynamic mode — not ours.)
generate_completions_from_executable:
executable: marathon
args:
- completions
base_name: marathon
shells:
- bash
- zsh
- fish
# Binaries aren't notarized, so strip the Gatekeeper quarantine flag on
# install — otherwise macOS blocks the binary with a "cannot be opened" error.
hooks:
post:
install: |
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/marathon"]
end
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
footer: >-
---
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).