Skip to content

Commit

Permalink
infra: working on homebrew tap
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoiro3 committed Apr 18, 2024
1 parent e5a4ef0 commit 626cd1b
Showing 1 changed file with 81 additions and 4 deletions.
85 changes: 81 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,88 @@ changelog:
- "^test:"

brews:
- name: {{ .ProjectName }}
homepage: https://github.com/jdoiro3/DaGit
tap:
- name: "{{ .ProjectName }}"

# IDs of the archives to use.
# Empty means all IDs.
ids: []

# Headers to include in the `url` stanza.
# This can be a more modern alternative to `download_strategy` in some
# cases.
#
# Since: v1.25
url_headers:
- "Accept: application/octet-stream"
- 'Authorization: bearer #{ENV["HOMEBREW_GITHUB_API_TOKEN"]}'

# Allows you to set a custom download strategy. Note that you'll need
# to implement the strategy and add it to your tap repository.
# Example: https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly
download_strategy: CurlDownloadStrategy

# Allows you to add a custom require_relative at the top of the formula
# template.
custom_require: custom_download_strategy

# Git author used to commit to the repository.
commit_author:
name: goreleaserbot
email: bot@goreleaser.com

# The project name and current git tag are used in the format string.
#
# Templates: allowed
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"

# Directory inside the repository to put the formula.
directory: Formula

# Caveats for the user of your binary.
caveats: "How to use this binary"

# Your app's homepage.
homepage: "https://github.com/jdoiro3/DaGit"

# Your app's description.
#
# Templates: allowed
description: "Software to create fast and easy drum rolls."

# SPDX identifier of your app's license.
license: "MIT"

# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist directory
# only, leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
#
# Templates: allowed
skip_upload: true

# Repository to push the generated files to.
repository:
# Repository owner.
#
# Templates: allowed
owner: jdoiro3
name: dagit

# Repository name.
#
# Templates: allowed
name: DaGit

# Optionally a branch can be provided.
#
# Default: default repository branch
# Templates: allowed
branch: main

# Optionally a token can be provided, if it differs from the token
# provided to GoReleaser
# Templates: allowed
token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}"

release:
# Repo in which the release will be created.
Expand Down

0 comments on commit 626cd1b

Please sign in to comment.