.goreleaser.yaml 905 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version: 2
  2. project_name: cc-switch
  3. before:
  4. hooks:
  5. - go mod tidy
  6. builds:
  7. - id: cc-switch
  8. main: ./cmd/cc-switch
  9. binary: cc-switch
  10. env:
  11. - CGO_ENABLED=0
  12. goos:
  13. - darwin
  14. - linux
  15. goarch:
  16. - amd64
  17. - arm64
  18. ldflags:
  19. - -s -w
  20. - -X github.com/kotoyuuko/cc-switch-cli/internal/cli.version={{.Version}}
  21. - -X github.com/kotoyuuko/cc-switch-cli/internal/cli.commit={{.Commit}}
  22. - -X github.com/kotoyuuko/cc-switch-cli/internal/cli.date={{.Date}}
  23. archives:
  24. - formats: [tar.gz]
  25. name_template: >-
  26. {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
  27. files:
  28. - README.md
  29. - LICENSE*
  30. - examples/*
  31. checksum:
  32. name_template: "checksums.txt"
  33. algorithm: sha256
  34. changelog:
  35. sort: asc
  36. filters:
  37. exclude:
  38. - "^docs:"
  39. - "^chore:"
  40. - "^test:"
  41. release:
  42. draft: true
  43. prerelease: auto