added goreleaser
99e03f16
2 file(s) · +64 −0
| 1 | 1 | radicalize |
|
| 2 | + | ||
| 3 | + | dist/ |
| 1 | + | # This is an example .goreleaser.yml file with some sensible defaults. |
|
| 2 | + | # Make sure to check the documentation at https://goreleaser.com |
|
| 3 | + | ||
| 4 | + | # The lines below are called `modelines`. See `:help modeline` |
|
| 5 | + | # Feel free to remove those if you don't want/need to use them. |
|
| 6 | + | # yaml-language-server: $schema=https://goreleaser.com/static/schema.json |
|
| 7 | + | # vim: set ts=2 sw=2 tw=0 fo=cnqoj |
|
| 8 | + | ||
| 9 | + | version: 2 |
|
| 10 | + | ||
| 11 | + | before: |
|
| 12 | + | hooks: |
|
| 13 | + | # You may remove this if you don't use go modules. |
|
| 14 | + | - go mod tidy |
|
| 15 | + | # you may remove this if you don't need go generate |
|
| 16 | + | - go generate ./... |
|
| 17 | + | ||
| 18 | + | builds: |
|
| 19 | + | - env: |
|
| 20 | + | - CGO_ENABLED=0 |
|
| 21 | + | goos: |
|
| 22 | + | - linux |
|
| 23 | + | - windows |
|
| 24 | + | - darwin |
|
| 25 | + | binary: radicalize |
|
| 26 | + | ||
| 27 | + | archives: |
|
| 28 | + | - format: tar.gz |
|
| 29 | + | # this name template makes the OS and Arch compatible with the results of `uname`. |
|
| 30 | + | name_template: >- |
|
| 31 | + | {{ .ProjectName }}_ |
|
| 32 | + | {{- title .Os }}_ |
|
| 33 | + | {{- if eq .Arch "amd64" }}x86_64 |
|
| 34 | + | {{- else if eq .Arch "386" }}i386 |
|
| 35 | + | {{- else }}{{ .Arch }}{{ end }} |
|
| 36 | + | {{- if .Arm }}v{{ .Arm }}{{ end }} |
|
| 37 | + | # use zip for windows archives |
|
| 38 | + | format_overrides: |
|
| 39 | + | - goos: windows |
|
| 40 | + | format: zip |
|
| 41 | + | ||
| 42 | + | changelog: |
|
| 43 | + | sort: asc |
|
| 44 | + | filters: |
|
| 45 | + | exclude: |
|
| 46 | + | - "^docs:" |
|
| 47 | + | - "^test:" |
|
| 48 | + | ||
| 49 | + | brews: |
|
| 50 | + | - name: radicalize |
|
| 51 | + | homepage: "https://github.com/stevedylandev/radicalize" |
|
| 52 | + | description: "Migrate existing local git repos to Radical" |
|
| 53 | + | license: "MIT" |
|
| 54 | + | url_template: "https://github.com/stevedylandev/radicalize/releases/download/{{ .Tag }}/{{ .ArtifactName }}" |
|
| 55 | + | commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" |
|
| 56 | + | repository: |
|
| 57 | + | owner: stevedylandev |
|
| 58 | + | name: homebrew-radicalize |
|
| 59 | + | branch: main |
|
| 60 | + | commit_author: |
|
| 61 | + | name: goreleaser-bot |
|
| 62 | + | email: bot@goreleaser.com |