Skip to content

Commit

Permalink
create homebrew formula
Browse files Browse the repository at this point in the history
  • Loading branch information
stuart-warren committed Dec 30, 2020
1 parent 35770d9 commit a2fd078
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ jobs:
with:
args: release
env:
HOMEBREW_GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22 changes: 22 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ archives:
linux: Linux
windows: Windows
amd64: x86_64
files:
- README.md
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -32,3 +35,22 @@ changelog:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- go mod tidy
brews:
- name: yamlfmt
tap:
owner: stuart-warren
name: homebrew-apps
token: "{{ .Env.HOMEBREW_GITHUB_TOKEN }}"
folder: Formula
homepage: https://github.com/stuart-warren/yamlfmt
description: based on gofmt, yamlfmt formats yaml files into a canonical format
license: BSD-3-clause
test: |
system "#{bin}/yamlfmt -help"
dependencies:
- name: go
install: |-
bin.install "yamlfmt"

0 comments on commit a2fd078

Please sign in to comment.