|
| 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: 1 |
| 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 | + goos: |
| 21 | + - linux |
| 22 | + - windows |
| 23 | + - darwin |
| 24 | + ldflags: | |
| 25 | + -s -w -X cmd.version={{.Version}} -X cmd.commit={{.Commit}} -X cmd.date={{.Date}} -X cmd.builtBy=goreleaser |
| 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: polylint |
| 51 | + |
| 52 | + # Git author used to commit to the repository. |
| 53 | + commit_author: |
| 54 | + name: goreleaserbot |
| 55 | + |
| 56 | + |
| 57 | + # The project name and current git tag are used in the format string. |
| 58 | + # |
| 59 | + # Templates: allowed |
| 60 | + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" |
| 61 | + |
| 62 | + # Directory inside the repository to put the formula. |
| 63 | + directory: .config/brew/Formula |
| 64 | + |
| 65 | + # Your app's homepage. |
| 66 | + homepage: "https://github.com/zph/polylint" |
| 67 | + |
| 68 | + # Your app's description. |
| 69 | + # |
| 70 | + # Templates: allowed |
| 71 | + description: "Polylint: Extensible generic linter" |
| 72 | + |
| 73 | + # SPDX identifier of your app's license. |
| 74 | + license: "MIT" |
| 75 | + |
| 76 | + # Custom block for brew. |
| 77 | + # Can be used to specify alternate downloads for devel or head releases. |
| 78 | + custom_block: | |
| 79 | + head "https://github.com/zph/polylint.git" |
| 80 | +
|
| 81 | + # So you can `brew test` your formula. |
| 82 | + # |
| 83 | + # Template: allowed |
| 84 | + test: | |
| 85 | + system "#{bin}/polylint --version" |
| 86 | +
|
| 87 | + # Repository to push the generated files to. |
| 88 | + repository: |
| 89 | + # Repository owner. |
| 90 | + # Templates: allowed |
| 91 | + owner: zph |
| 92 | + |
| 93 | + # Repository name. |
| 94 | + # |
| 95 | + # Templates: allowed |
| 96 | + name: polylint |
| 97 | + |
| 98 | + # Optionally a branch can be provided. |
| 99 | + # |
| 100 | + # Default: default repository branch |
| 101 | + # Templates: allowed |
| 102 | + branch: main |
| 103 | + |
| 104 | + # Sets up pull request creation instead of just pushing to the given branch. |
| 105 | + # Make sure the 'branch' property is different from base before enabling |
| 106 | + # it. |
| 107 | + # |
| 108 | + # Since: v1.17 |
| 109 | + pull_request: |
| 110 | + # Whether to enable it or not. |
| 111 | + enabled: true |
| 112 | + |
| 113 | + # Whether to open the PR as a draft or not. |
| 114 | + # |
| 115 | + # Since: v1.19 |
| 116 | + draft: true |
0 commit comments