-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.goreleaser.yml
More file actions
109 lines (96 loc) · 3.74 KB
/
.goreleaser.yml
File metadata and controls
109 lines (96 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: describe-commit
before:
hooks:
- go generate -skip readme ./...
- go build -o /dev/null ./cmd/describe-commit
builds: # https://goreleaser.com/customization/builds/go/
- main: ./cmd/describe-commit
binary: describe-commit
goos: [windows, darwin, linux]
goarch: [amd64, arm, arm64]
env: [CGO_ENABLED=0]
mod_timestamp: '{{ .CommitTimestamp }}'
flags: [-trimpath]
ldflags: ['-s -w -X gh.tarampamp.am/describe-commit/internal/version.version={{ .Version }}']
changelog: {disable: true} # https://goreleaser.com/customization/changelog/
release: # https://goreleaser.com/customization/release/
draft: true # if true, will not auto-publish the release
mode: append
footer: |
{{ if isEnvSet "DOCKER_IMAGES" }}
## 🐋 Docker image
```cpp
{{ .Env.DOCKER_IMAGES }}
```
{{ end }}
archives: # https://goreleaser.com/customization/archive/
- id: default
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
formats: [gz, binary]
files: [none*]
format_overrides: [{goos: windows, formats: [zip, binary]}]
- id: aur
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
formats: [tar.gz]
files: [LICENSE]
format_overrides: [{goos: windows, formats: [none]}]
checksum: # https://goreleaser.com/customization/checksum/
algorithm: sha256
split: false # if true, will create one checksum file for each artifact
name_template: checksums.txt
nfpms: # https://goreleaser.com/customization/nfpm/
- file_name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
maintainer: '{{ envOrDefault "OWNER" "Tarampampam" }}'
description: CLI tool that leverages AI to generate commit messages based on changes made in a Git repository
bindir: /usr/local/bin
formats: [apk, deb, rpm, archlinux]
dependencies: [git]
aurs: # https://goreleaser.com/customization/aur/
- name: describe-commit-bin
ids: [aur]
homepage: 'https://github.com/tarampampam/describe-commit'
description: CLI tool that leverages AI to generate commit messages based on changes made in a Git repository
maintainers:
- tarampampam <murmur at cats dot rulez>
- jetexe <aur at jetexe dot net>
license: MIT
private_key: '{{ .Env.AUR_SSH_PRIVATE }}'
git_url: ssh://aur@aur.archlinux.org/describe-commit-bin.git
provides: [describe-commit]
conflicts: [describe-commit]
depends: [git]
commit_author:
name: '{{ .Env.AUR_GIT_USERNAME }}'
email: '{{ .Env.AUR_GIT_EMAIL }}'
# Source archives for AUR sources package
source: # https://goreleaser.com/customization/source/
enabled: true
name_template: '{{ .ProjectName }}_v{{ .Version }}_sources'
aur_sources: # https://goreleaser.com/customization/aursources/
- name: describe-commit
homepage: 'https://github.com/tarampampam/describe-commit'
description: CLI tool that leverages AI to generate commit messages based on changes made in a Git repository
maintainers:
- tarampampam <murmur at cats dot rulez>
- jetexe <aur at jetexe dot net>
license: MIT
private_key: '{{ .Env.AUR_SSH_PRIVATE }}'
git_url: ssh://aur@aur.archlinux.org/describe-commit.git
depends: [git]
makedepends:
- go
prepare: |-
go mod download
build: |-
go generate -skip readme ./...
CGO_ENABLED=0 go build \
-trimpath \
-ldflags "-s -w -X gh.tarampamp.am/describe-commit/internal/version.version=${pkgver}" \
-o ./describe-commit \
./cmd/describe-commit/
package: install -Dm755 "./{{ .ProjectName }}" "$pkgdir/usr/bin/{{ .ProjectName }}"
commit_author:
name: '{{ .Env.AUR_GIT_USERNAME }}'
email: '{{ .Env.AUR_GIT_EMAIL }}'