Skip to content

Commit

Permalink
Update masutaka/homebrew-tap after release
Browse files Browse the repository at this point in the history
  • Loading branch information
masutaka committed Jul 2, 2024
1 parent 4d38c84 commit fe5d361
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,15 @@ jobs:
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
- name: Release
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
pushover:
name: pushover if failure
if: failure()
Expand Down
27 changes: 27 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,30 @@ changelog:
exclude:
- "^docs:"
- "^test:"

brews:
repository:
owner: masutaka
name: homebrew-tap
commit_author:
name: "github-actions[bot]"
email: "github-actions[bot]@users.noreply.github.com"
description: "Print today's your GitHub activity for issues and pull requests"
homepage: "https://github.com/masutaka/github-nippou"
license: "MIT"
install: |
bin.install 'github-nippou'
# Install bash completion
output = Utils.safe_popen_read("#{bin}/github-nippou", 'completion', 'bash')
(bash_completion/'github-nippou').write output
# Install fish completion
output = Utils.safe_popen_read("#{bin}/github-nippou", 'completion', 'fish')
(fish_completion/'github-nippou.fish').write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/github-nippou", 'completion', 'zsh')
(zsh_completion/'_github-nippou').write output
test: |
system 'github-nippou', 'version'

0 comments on commit fe5d361

Please sign in to comment.