github.com/liftedinit/mfx-migrator@v0.0.1-alpha.1/.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 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  project_name: mfx-migrator
    12  
    13  before:
    14    hooks:
    15      # You may remove this if you don't use go modules.
    16      - go mod tidy
    17      # you may remove this if you don't need go generate
    18      - go generate ./...
    19  
    20  builds:
    21    - main: ./main.go
    22      env:
    23        - CGO_ENABLED=0
    24      goos:
    25        - linux
    26        - darwin
    27      goarch:
    28        - amd64
    29        - arm64
    30      ignore:
    31        - goos: darwin
    32          goarch: amd64
    33        - goos: linux
    34          goarch: arm64
    35  
    36  archives:
    37    - format: tar.gz
    38      # this name template makes the OS and Arch compatible with the results of `uname`.
    39      name_template: >-
    40        {{ .ProjectName }}_
    41        {{- .Version }}_
    42        {{- title .Os }}_
    43        {{- if eq .Arch "amd64" }}x86_64
    44        {{- else if eq .Arch "386" }}i386
    45        {{- else }}{{ .Arch }}{{ end }}
    46        {{- if .Arm }}v{{ .Arm }}{{ end }}
    47  
    48  changelog:
    49    sort: asc
    50    filters:
    51      exclude:
    52        - "^docs:"
    53        - "^test:"