github.com/iamlucasvieira/ComTemplate@v0.0.0-20231228160247-43229117158f/.goreleaser.yaml (about)

     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 bellow 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  project_name: ct
     9  
    10  before:
    11    hooks:
    12      # You may remove this if you don't use go modules.
    13      - go mod tidy
    14      # you may remove this if you don't need go generate
    15      - go generate ./...
    16  
    17  builds:
    18    - env:
    19        - CGO_ENABLED=0
    20      goos:
    21        - linux
    22        - windows
    23        - darwin
    24  
    25  archives:
    26    - format: tar.gz
    27      # this name template makes the OS and Arch compatible with the results of `uname`.
    28      name_template: >-
    29        {{ .ProjectName }}_
    30        {{- title .Os }}_
    31        {{- if eq .Arch "amd64" }}x86_64
    32        {{- else if eq .Arch "386" }}i386
    33        {{- else }}{{ .Arch }}{{ end }}
    34        {{- if .Arm }}v{{ .Arm }}{{ end }}
    35      # use zip for windows archives
    36      format_overrides:
    37        - goos: windows
    38          format: zip
    39  
    40  changelog:
    41    sort: asc
    42    filters:
    43      exclude:
    44        - "^docs:"
    45        - "^test:"
    46  
    47  brews:
    48    - name: ct
    49      repository:
    50        owner: iamlucasvieira
    51        name: homebrew-tap
    52      description: "Easy commit templates."
    53      homepage: "https://github.com/iamlucasvieira/ComTemplate"
    54      license: "MIT"
    55      commit_author:
    56        name: goreleaserbot
    57        email: lucas6eng@gmail.com
    58      commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
    59      folder: Formula