github.com/soulteary/pocket-bookcase@v0.0.0-20240428065142-0b5a9a0fc98a/.goreleaser.yaml (about)

     1  before:
     2    hooks:
     3      - go mod tidy
     4  builds:
     5    - binary: shiori
     6      env:
     7        - CGO_ENABLED=0
     8        - GIN_MODE=release
     9      tags:
    10        - netgo
    11        - osusergo
    12      goos:
    13        - linux
    14        - windows
    15        - darwin
    16      goarch:
    17        - amd64
    18        - arm
    19        - arm64
    20      goarm:
    21        - "7"
    22      ignore:
    23        - goos: darwin
    24          goarch: arm
    25        - goos: windows
    26          goarch: arm
    27        - goos: windows
    28          goarch: arm64
    29  archives:
    30    - id: shiori
    31      name_template: >-
    32        {{ .ProjectName }}_
    33        {{- if eq .Os "darwin" }}Darwin{{- else if eq .Os "linux" }}Linux{{- else if eq .Os "windows" }}Windows{{- else }}{{ .Os }}{{ end }}_
    34        {{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "arm64" }}aarch64{{- else }}{{ .Arch }}{{ end }}
    35      format_overrides:
    36      - goos: windows
    37        format: zip
    38  
    39  checksum:
    40    name_template: 'checksums.txt'
    41  snapshot:
    42    name_template: "{{ incpatch .Version }}-next"
    43  changelog:
    44    sort: asc
    45    groups:
    46      - title: Features
    47        regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
    48        order: 0
    49      - title: "Fixes"
    50        regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
    51        order: 1
    52      - title: "Performance"
    53        regexp: '^.*?perf(\([[:word:]]+\))??!?:.+$'
    54        order: 2
    55      - title: API
    56        regexp: '^.*?api(\([[:word:]]+\))??!?:.+$'
    57        order: 3
    58      - title: Documentation
    59        regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
    60        order: 4
    61      - title: "Tests"
    62        regexp: '^.*?test(\([[:word:]]+\))??!?:.+$'
    63        order: 5
    64      - title: CI and Delivery
    65        regexp: '^.*?ci(\([[:word:]]+\))??!?:.+$'
    66        order: 6
    67      - title: Others
    68        order: 999
    69    filters:
    70      exclude:
    71        - "^deps:"
    72        - "^chore\\(deps\\):"
    73  release:
    74    prerelease: auto