github.com/tommi2day/tnscli@v0.0.0-20240401211958-338fc0647b73/.goreleaser.yaml (about) 1 --- 2 project_name: tnscli 3 4 builds: 5 - env: 6 - CGO_ENABLED=0 7 goos: 8 - linux 9 - darwin 10 - windows 11 goarch: 12 - amd64 13 - arm 14 targets: 15 - linux_amd64 16 - linux_arm 17 - darwin_amd64 18 - windows_amd64 19 ldflags: 20 - -s -w 21 - -X {{ .ProjectName }}/cmd.Version={{.Version}} 22 - -X {{ .ProjectName }}/cmd.Commit={{.ShortCommit}} 23 - -X {{ .ProjectName }}/cmd.Date={{time "2006-01-02"}} 24 - -X {{ .ProjectName }}/cmd.Name={{.ProjectName}} 25 26 changelog: 27 use: git 28 filters: 29 exclude: 30 - '^Merge branch' 31 groups: 32 - title: Features 33 regexp: "^.*feat[(\\w)]*:+.*$" 34 order: 0 35 - title: 'Bug fixes' 36 regexp: "^.*fix[(\\w)]*:+.*$" 37 order: 1 38 - title: 'Refactoring' 39 regexp: "^.*refactor[(\\w)]*:+.*$" 40 order: 2 41 - title: Others 42 order: 999 43 44 checksum: 45 name_template: 'checksums.txt' 46 47 snapshot: 48 name_template: "{{ incpatch .Version }}-beta" 49 50 archives: 51 - id: archive 52 format: tar.gz 53 format_overrides: 54 - goos: windows 55 format: zip 56 strip_parent_binary_folder: true 57 files: 58 - "*.md" 59 - LICENSE 60 - scripts/* 61 62 nfpms: 63 - id: packages 64 # dont use {{ .ProjectName }} here :( 65 package_name: tnscli 66 file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" 67 # builds: 68 maintainer: "Tommi2Day <tommi2day@github.com>" 69 description: |- 70 Small Oracle TNS Service and Connect Test Tool 71 formats: 72 - rpm 73 - deb 74 # dependencies: 75 provides: 76 # dont use {{ .ProjectName }} here :( 77 - tnscli 78 contents: 79 - src: "*.md" 80 dst: /usr/share/doc/{{ .ProjectName }}/ 81 - src: LICENSE 82 dst: /usr/share/doc/{{ .ProjectName }}/ 83 - src: scripts/* 84 dst: /usr/bin 85 86 87 release: 88 github: 89 owner: tommi2day 90 name: tnscli 91 replace_existing_draft: true 92 draft: true 93 header: | 94 ## TNSCLI Release {{ .Tag }} ({{ time "2006-01-02" }}) 95 target_commitish: '{{ .Commit }}'