Skip to content

Commit 7763362

Browse files
committed
Merge branch 'setup-goreleaser-brew'
2 parents 6093358 + fe54925 commit 7763362

File tree

1 file changed

+119
-0
lines changed

1 file changed

+119
-0
lines changed

.goreleaser.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,122 @@ changelog:
3131
exclude:
3232
- '^docs:'
3333
- '^test:'
34+
brews:
35+
-
36+
# Name template of the recipe
37+
# Default to project name
38+
# name: myproject
39+
40+
# IDs of the archives to use.
41+
# Defaults to all.
42+
# ids:
43+
# - foo
44+
# - bar
45+
46+
# GOARM to specify which 32-bit arm version to use if there are multiple versions
47+
# from the build section. Brew formulas support atm only one 32-bit version.
48+
# Default is 6 for all artifacts or each id if there a multiple versions.
49+
goarm: 6
50+
51+
# NOTE: make sure the url_template, the token and given repo (github or gitlab) owner and name are from the
52+
# same kind. We will probably unify this in the next major version like it is done with scoop.
53+
54+
# GitHub/GitLab repository to push the formula to
55+
# Gitea is not supported yet, but the support coming
56+
tap:
57+
owner: aaronvb
58+
name: homebrew-rq
59+
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
60+
# token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
61+
62+
# Template for the url which is determined by the given Token (github or gitlab)
63+
# Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
64+
# Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}"
65+
# Default for gitea is "https://gitea.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
66+
url_template: "https://github.com/aaronvb/request_hole/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
67+
68+
# Allows you to set a custom download strategy. Note that you'll need
69+
# to implement the strategy and add it to your tap repository.
70+
# Example: https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly
71+
# Default is empty.
72+
# download_strategy: CurlDownloadStrategy.
73+
74+
# Allows you to add a custom require_relative at the top of the formula template
75+
# Default is empty
76+
# custom_require: custom_download_strategy
77+
78+
# Git author used to commit to the repository.
79+
# Defaults are shown.
80+
commit_author:
81+
name: Aaron Van Bokhoven
82+
83+
84+
# Folder inside the repository to put the formula.
85+
# Default is the root folder.
86+
folder: Formula
87+
88+
# Caveats for the user of your binary.
89+
# Default is empty.
90+
# caveats: "How to use this binary"
91+
92+
# Your app's homepage.
93+
# Default is empty.
94+
homepage: "https://github.com/aaronvb/request_hole"
95+
96+
# Your app's description.
97+
# Default is empty.
98+
description: "Request Hole is a command line tool for creating a temporary endpoint."
99+
100+
# SPDX identifier of your app's license.
101+
# Default is empty.
102+
license: "MIT"
103+
104+
# Setting this will prevent goreleaser to actually try to commit the updated
105+
# formula - instead, the formula file will be stored on the dist folder only,
106+
# leaving the responsibility of publishing it to the user.
107+
# If set to auto, the release will not be uploaded to the homebrew tap
108+
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
109+
# Default is false.
110+
# skip_upload: true
111+
112+
# Custom block for brew.
113+
# Can be used to specify alternate downloads for devel or head releases.
114+
# Default is empty.
115+
# custom_block: |
116+
# head "https://github.com/some/package.git"
117+
# ...
118+
119+
# Packages your package depends on.
120+
dependencies:
121+
- name: go
122+
type: optional
123+
124+
# Packages that conflict with your package.
125+
# conflicts:
126+
# - svn
127+
# - bash
128+
129+
# Specify for packages that run as a service.
130+
# Default is empty.
131+
# plist: |
132+
# <?xml version="1.0" encoding="UTF-8"?>
133+
# ...
134+
135+
# So you can `brew test` your formula.
136+
# Default is empty.
137+
test: |
138+
system "#{bin}/rq version"
139+
...
140+
141+
# Custom install script for brew.
142+
# Default is 'bin.install "program"'.
143+
install: |
144+
bin.install "program"
145+
...
146+
147+
# Custom post_install script for brew.
148+
# Could be used to do any additional work after the "install" script
149+
# Default is empty.
150+
# post_install: |
151+
# etc.install "app-config.conf"
152+
# ...

0 commit comments

Comments
 (0)