|
| 1 | +# This is an example .goreleaser.yml file with some sensible defaults. |
| 2 | +# Make sure to check the documentation at https://goreleaser.com |
| 3 | +before: |
| 4 | + hooks: |
| 5 | + # You may remove this if you don't use go modules. |
| 6 | + - go mod tidy |
| 7 | + # you may remove this if you don't need go generate |
| 8 | + # - go generate ./... |
| 9 | +builds: |
| 10 | + - env: |
| 11 | + - CGO_ENABLED=0 |
| 12 | + goos: |
| 13 | + - linux |
| 14 | + - windows |
| 15 | + - darwin |
| 16 | +archives: |
| 17 | + - replacements: |
| 18 | + darwin: Darwin |
| 19 | + linux: Linux |
| 20 | + windows: Windows |
| 21 | + 386: i386 |
| 22 | + amd64: x86_64 |
| 23 | +checksum: |
| 24 | + name_template: 'checksums.txt' |
| 25 | +snapshot: |
| 26 | + name_template: "{{ incpatch .Version }}-next" |
| 27 | +changelog: |
| 28 | + sort: asc |
| 29 | + filters: |
| 30 | + exclude: |
| 31 | + - '^docs:' |
| 32 | + - '^test:' |
| 33 | + |
| 34 | +# modelines, feel free to remove those if you don't want/use them: |
| 35 | +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json |
| 36 | +# vim: set ts=2 sw=2 tw=0 fo=cnqoj |
| 37 | + |
| 38 | +brews: |
| 39 | + - |
| 40 | + # Name template of the recipe |
| 41 | + # Default to project name |
| 42 | + name: aurl |
| 43 | + |
| 44 | + # GitHub/GitLab repository to push the formula to |
| 45 | + tap: |
| 46 | + owner: classmethod |
| 47 | + name: homebrew-repos |
| 48 | + |
| 49 | + # Template for the url which is determined by the given Token (github, |
| 50 | + # gitlab or gitea) |
| 51 | + # |
| 52 | + # Default depends on the client. |
| 53 | + # url_template: "http://github.mycompany.com/foo/bar/releases/download/{{ .Tag }}/{{ .ArtifactName }}" |
| 54 | + |
| 55 | + # Git author used to commit to the repository. |
| 56 | + # Defaults are shown. |
| 57 | + commit_author: |
| 58 | + name: goreleaserbot |
| 59 | + |
| 60 | + |
| 61 | + # The project name and current git tag are used in the format string. |
| 62 | + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" |
| 63 | + |
| 64 | + # So you can `brew test` your formula. |
| 65 | + # Default is empty. |
| 66 | + test: | |
| 67 | + system "#{bin}/aurl --version" |
| 68 | + # ... |
| 69 | +
|
| 70 | + # Custom install script for brew. |
| 71 | + # Default is 'bin.install "the binary name"'. |
| 72 | + install: | |
| 73 | + bin.install "some_other_name" |
| 74 | + # bash_completion.install "completions/aurl.bash" => "aurl" |
| 75 | + # ... |
0 commit comments