diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c23d3be..f93463c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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() diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 60415e4..e2a15df 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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'