Merge pull request #2 from johnnyrobot/feat/homebrew-formula #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: ['v*'] | |
| permissions: | |
| contents: write | |
| jobs: | |
| goreleaser: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # goreleaser derives the changelog and version from tag history. | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| # Keep in step with ci.yml — see the note there about GO-2026-5856. | |
| go-version: '1.26.5' | |
| check-latest: true | |
| - name: Verify before publishing | |
| run: | | |
| go build ./... | |
| go vet ./... | |
| go test ./... | |
| - uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: '~> v2' | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Fine-grained PAT scoped to the tap repo, Contents: read+write — | |
| # GITHUB_TOKEN cannot push to another repository. | |
| HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} |