Skip to content

Commit

Permalink
Enable brew installation (#12)
Browse files Browse the repository at this point in the history
* Enable brew installation
Fixes #3
  • Loading branch information
s-dwinter authored Nov 20, 2023
1 parent 9c3aca7 commit b6342d4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
DEPLOY_PRIVATE_KEY: ${{ secrets.deploy_private_key }}
15 changes: 15 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ archives:
- goos: windows
format: zip

brews:
- homepage: https://github.com/dwango/yashiro
description: A tool to manage template files with external stores.
license: "Apache-2.0"
skip_upload: auto
extra_install: |
generate_completions_from_executable(bin/"{{ .ProjectName }}", "completion", base_name: "{{ .ProjectName }}")
test: |
version_output = shell_output("#{bin}/{{ .ProjectName }} version")
assert_match "{{ .Version }}", version_output
repository:
git:
url: "[email protected]:dwango/homebrew-yashiro.git"
private_key: "{{ .Env.DEPLOY_PRIVATE_KEY }}"

checksum:
name_template: "checksums.txt"

Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,21 @@ go get github.com/dwango/yashiro

## CLI Tool

### Install
### Installation

#### From release page

Download binary from [release page](https://github.com/dwango/yashiro/releases).

#### Homebrew Users

Download and install by homebrew.

```sh
brew tap dwango/yashiro
brew install ysr
```

### Example

See [example](./example/).

0 comments on commit b6342d4

Please sign in to comment.