github.com/FollowTheProcess/tag@v0.4.2/.goreleaser.yml (about)

     1  project_name: tag
     2  
     3  before:
     4    hooks:
     5      - go install golang.org/x/tools/cmd/stringer@latest
     6      - go mod tidy
     7      - go generate ./...
     8      - go fmt ./...
     9  
    10  builds:
    11    - id: tag
    12      dir: "."
    13      main: "./cmd/tag"
    14      binary: tag
    15      ldflags:
    16        - -s -w
    17        - -X github.com/FollowTheProcess/tag/cli.version={{.Version}}
    18        - -X github.com/FollowTheProcess/tag/cli.commit={{.Commit}}
    19        - -X github.com/FollowTheProcess/tag/cli.buildDate={{.Date}}
    20        - -X github.com/FollowTheProcess/tag/cli.builtBy=GoReleaser
    21  
    22      env:
    23        - CGO_ENABLED=0
    24      goos:
    25        - linux
    26        - darwin
    27        - windows
    28      goarch:
    29        - "386"
    30        - amd64
    31        - arm64
    32      goarm:
    33        - "7"
    34  
    35  brews:
    36    - tap:
    37        owner: FollowTheProcess
    38        name: homebrew-tap
    39        token: "{{.Env.HOMEBREW_TAP_TOKEN}}"
    40      goarm: "7"
    41      folder: Formula
    42      commit_author:
    43        name: Tom Fleet
    44        email: tomfleet2018@gmail.com
    45      homepage: https://github.com/FollowTheProcess/tag
    46      description: The all in one semver management tool
    47      license: Apache Software License 2.0
    48      install: |
    49        bin.install "tag"
    50      test: |
    51        "#{bin}/tag --version"
    52  
    53  archives:
    54    - id: tag
    55      name_template: >-
    56        {{ .ProjectName }}-
    57        {{- .Version}}-
    58        {{- .Os }}-
    59        {{- if eq .Arch "amd64" }}x86_64
    60        {{- else if eq .Arch "386" }}i386
    61        {{- else }}{{ .Arch }}{{ end }}
    62  
    63  sboms:
    64    - id: tag
    65      artifacts: archive
    66      documents:
    67        - >-
    68          {{ .ProjectName }}-
    69          {{- .Version}}-
    70          {{- .Os }}-
    71          {{- if eq .Arch "amd64" }}x86_64
    72          {{- else if eq .Arch "386" }}i386
    73          {{- else }}{{ .Arch }}{{ end }}.sbom
    74  
    75  checksum:
    76    name_template: checksums.txt
    77  
    78  snapshot:
    79    name_template: "{{ .Tag }}-dev{{ .ShortCommit }}"
    80  
    81  changelog:
    82    # The changelog is handled by release drafter
    83    skip: true