chore: updated goreleaser
d57d0010
2 file(s) · +26 −1
| 70 | 70 | with: |
|
| 71 | 71 | distribution: goreleaser |
|
| 72 | 72 | version: "~> v2" |
|
| 73 | - | args: release --clean --skip=publish,announce,validate |
|
| 73 | + | # Builds binaries + archives + pushes brew formula. GH release |
|
| 74 | + | # itself is disabled via `release.disable` in app config; we |
|
| 75 | + | # create it below so it lands on the real prefixed tag. |
|
| 76 | + | args: release --clean --skip=announce,validate |
|
| 74 | 77 | workdir: apps/${{ steps.parse.outputs.app }} |
|
| 75 | 78 | env: |
|
| 76 | 79 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
| 80 | + | HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} |
|
| 77 | 81 | # Strip "app/" prefix so goreleaser parses as semver. |
|
| 78 | 82 | GORELEASER_CURRENT_TAG: ${{ steps.parse.outputs.version }} |
|
| 79 | 83 | GORELEASER_PREVIOUS_TAG: ${{ steps.prev.outputs.tag }} |
| 63 | 63 | # using `gh release create`. GoReleaser OSS can't natively map a stripped |
|
| 64 | 64 | # version back to a prefixed tag without the Pro `monorepo` feature. |
|
| 65 | 65 | disable: true |
|
| 66 | + | ||
| 67 | + | brews: |
|
| 68 | + | - name: sipp |
|
| 69 | + | repository: |
|
| 70 | + | owner: stevedylandev |
|
| 71 | + | name: homebrew-tap |
|
| 72 | + | token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" |
|
| 73 | + | # Override URL — real release tag is `sipp/vX.Y.Z`, not `vX.Y.Z`. |
|
| 74 | + | url_template: "https://github.com/stevedylandev/andromeda/releases/download/sipp/v{{ .Version }}/{{ .ArtifactName }}" |
|
| 75 | + | homepage: "https://github.com/stevedylandev/andromeda" |
|
| 76 | + | description: "Code sharing CLI, server, and TUI" |
|
| 77 | + | license: "MIT" |
|
| 78 | + | commit_author: |
|
| 79 | + | name: goreleaserbot |
|
| 80 | + | email: bot@goreleaser.com |
|
| 81 | + | commit_msg_template: "brew: sipp {{ .Tag }}" |
|
| 82 | + | directory: Formula |
|
| 83 | + | install: | |
|
| 84 | + | bin.install "sipp" |
|
| 85 | + | test: | |
|
| 86 | + | system "#{bin}/sipp", "--help" |