github.com/pdfcpu/pdfcpu@v0.11.1/.goreleaser.yml (about) 1 version: 2 2 3 builds: 4 - main: ./cmd/pdfcpu 5 env: 6 - CGO_ENABLED=0 7 ldflags: 8 - '-s -w -X main.version={{.Version}} -X github.com/pdfcpu/pdfcpu/pkg/pdfcpu.VersionStr={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}} -X main.builtBy=goreleaser' 9 goos: 10 - linux 11 - darwin 12 - windows 13 - js 14 goarch: 15 - amd64 16 - arm64 17 - arm 18 - wasm 19 - "386" 20 goarm: 21 - 7 22 ignore: 23 - goos: windows 24 goarch: arm 25 goarm: 7 26 - goos: windows 27 goarch: arm64 28 29 dist: ./dist 30 31 archives: 32 - format: tar.xz 33 format_overrides: 34 - goos: windows 35 format: zip 36 name_template: >- 37 {{- .ProjectName }}_ 38 {{- .Version }}_ 39 {{- title .Os }}_ 40 {{- if eq .Arch "linux" }}Linux 41 {{- else if eq .Arch "windows" }}Windows 42 {{- else if eq .Arch "386" }}i386 43 {{- else if eq .Arch "amd64" }}x86_64 44 {{- else }}{{ .Arch }}{{ end }} 45 {{- if .Arm }}v{{ .Arm }}{{ end -}} 46 wrap_in_directory: true 47 checksum: 48 name_template: 'checksums.txt' 49 snapshot: 50 name_template: "{{ .Tag }}-next" 51 changelog: 52 sort: asc 53 filters: 54 exclude: 55 - '^docs:' 56 - '^test:' 57 58 release: 59 github: 60 owner: pdfcpu 61 name: pdfcpu 62 draft: false # Optional: Set to true if you want to create drafts and not publish immediately 63 prerelease: false # Optional: Set to true if it's a prerelease 64