From c2a69629bc868f0bc317acb49009a935e272a3b0 Mon Sep 17 00:00:00 2001 From: CHIKAMATSU Naohiro Date: Wed, 1 May 2024 18:55:24 +0900 Subject: [PATCH] Auto generate homebrew tap --- .github/workflows/release.yml | 1 + .gitignore | 2 +- .goreleaser.yml | 8 ++++++++ README.md | 9 ++++----- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52abdeb..b932274 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,3 +25,4 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 0cee952..2fe8361 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,5 @@ # Dependency directories (remove the comment below to include it) # vendor/ gup -dist/ +dist cover.html diff --git a/.goreleaser.yml b/.goreleaser.yml index 6c59357..48c63b9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -39,3 +39,11 @@ nfpms: - deb - rpm - apk +brews: + - name: gup + description: gup - Update binaries installed by "go install" + license: Apache License 2.0 + repository: + owner: nao1215 + name: homebrew-tap + token: "{{ .Env.TAP_GITHUB_TOKEN }}" diff --git a/README.md b/README.md index 2d1be93..68438a2 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,12 @@ If you are using oh-my-zsh, then gup has an alias set up. The alias is `gup - gi ### Use "go install" If you does not have the golang development environment installed on your system, please install golang from the [golang official website](https://go.dev/doc/install). ``` -$ go install github.com/nao1215/gup@latest +go install github.com/nao1215/gup@latest ``` -### For Mac user -``` -$ brew tap nao1215/tap -$ brew install nao1215/tap/gup +### Use homebrew +```shell +brew install nao1215/tap/gup ``` ### Install from Package or Binary