github.com/upyun/upx@v0.4.7-0.20240419023638-b184a7cb7c10/.goreleaser.yml (about)

     1  before:
     2    hooks:
     3      - go mod download
     4  builds:
     5    - id: "upx"
     6      main: ./cmd/upx
     7      env:
     8        - CGO_ENABLED=0
     9      binary: upx
    10      flags:
    11        - -trimpath
    12      goos:
    13        - linux
    14        - darwin
    15        - windows
    16      goarch:
    17        - amd64
    18        - arm64
    19        - 386
    20        - arm
    21      goarm:
    22        - 6
    23        - 7
    24  
    25  archives:
    26    - id: default
    27      builds:
    28        - upx
    29      format_overrides:
    30        - goos: windows
    31          format: zip
    32  checksum:
    33    name_template: "checksums.txt"
    34  publishers:
    35    - name: upyun
    36      checksum: true
    37      cmd: ../upx put {{ .ArtifactName }} /softwares/upx/
    38      dir: "{{ dir .ArtifactPath }}"
    39      env:
    40        - HOME={{ .Env.HOME }}
    41  snapshot:
    42    name_template: "{{ .Tag }}-next"
    43  changelog:
    44    sort: asc
    45    filters:
    46      exclude:
    47        - "^docs:"
    48        - "^test:"