github.com/khulnasoft/codebase@v0.0.0-20231214144635-a707781cbb24/.goreleaser-nightly.yml (about)

     1  # For nightly release. See .goreleaser.yml for normal release.
     2  project_name: codebase
     3  
     4  before:
     5    hooks:
     6      - go mod download
     7  
     8  release:
     9    github:
    10      owner: khulnasoft
    11      name: nightly
    12    # Do not set prerelease so that https://github.com/khulnasoft/nightly/releases/latest always points to the latest version.
    13    prerelease: false
    14  
    15  builds:
    16    - env:
    17        - CGO_ENABLED=0
    18      main: ./cmd/codebase/
    19      ldflags: -s -w -X github.com/khulnasoft/codebase/commands.Version={{.Version}}
    20      goos:
    21        - linux
    22        - darwin
    23        - windows
    24      goarch:
    25        - 386
    26        - amd64
    27        - arm
    28        - arm64
    29  
    30  archives:
    31    - id: main
    32      name_template: >-
    33        {{ .ProjectName }}_
    34        {{- .Version }}_
    35        {{- title .Os }}_
    36        {{- if eq .Arch "amd64" }}x86_64
    37        {{- else if eq .Arch "386" }}i386
    38        {{- else }}{{ .Arch }}{{ end }}
    39        {{- with .Arm }}v{{ . }}{{ end }}
    40        {{- with .Mips }}_{{ . }}{{ end }}
    41        {{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
    42      files:
    43        - LICENSE
    44        - README.md
    45  
    46  checksum:
    47    name_template: "checksums.txt"
    48  
    49  snapshot:
    50    name_template: "{{ .Tag }}-next"