version: 2 project_name: cc-switch before: hooks: - go mod tidy builds: - id: cc-switch main: ./cmd/cc-switch binary: cc-switch env: - CGO_ENABLED=0 goos: - darwin - linux goarch: - amd64 - arm64 ldflags: - -s -w - -X github.com/kotoyuuko/cc-switch-cli/internal/cli.version={{.Version}} - -X github.com/kotoyuuko/cc-switch-cli/internal/cli.commit={{.Commit}} - -X github.com/kotoyuuko/cc-switch-cli/internal/cli.date={{.Date}} archives: - formats: [tar.gz] name_template: >- {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }} files: - README.md - LICENSE* - examples/* checksum: name_template: "checksums.txt" algorithm: sha256 changelog: sort: asc filters: exclude: - "^docs:" - "^chore:" - "^test:" release: draft: true prerelease: auto