-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yml
More file actions
157 lines (142 loc) · 3.75 KB
/
.goreleaser.yml
File metadata and controls
157 lines (142 loc) · 3.75 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# GoReleaser configuration for wt
# https://goreleaser.com
version: 2
project_name: wt
before:
hooks:
- go mod tidy
builds:
- main: .
binary: wt
ldflags:
- -s -w -X github.com/timvw/wt/cmd.Version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ignore:
# Windows arm64 is excluded due to limited adoption and testing capability.
# Can be added later when Windows on ARM becomes more mainstream.
- goos: windows
goarch: arm64
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- Merge pull request
- Merge branch
# Linux packages via nfpm
nfpms:
- package_name: wt
vendor: timvw
homepage: https://github.com/timvw/wt
maintainer: Tim Van Wassenhove <tim@vanwassenhove.be>
description: A fast, simple Git worktree helper
license: MIT
formats:
- deb
- rpm
- archlinux
bindir: /usr/bin
contents:
- src: ./LICENSE
dst: /usr/share/licenses/wt/LICENSE
scripts:
postinstall: scripts/postinstall.sh
preremove: scripts/preremove.sh
# Homebrew tap
brews:
- repository:
owner: timvw
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
directory: Formula
homepage: https://github.com/timvw/wt
description: Fast, simple Git worktree helper
license: MIT
install: |
bin.install "wt"
caveats: |
To enable shell integration (auto-cd after checkout/create), run:
wt init
Then restart your shell or run:
source ~/.zshrc # for zsh
source ~/.bashrc # for bash
To remove shell integration later:
wt init --uninstall
test: |
assert_match "wt version", shell_output("#{bin}/wt version")
# Scoop bucket for Windows
scoops:
- repository:
owner: timvw
name: scoop-bucket
token: "{{ .Env.SCOOP_BUCKET_TOKEN }}"
homepage: https://github.com/timvw/wt
description: A fast, simple Git worktree helper
license: MIT
# WinGet package (Windows Package Manager)
winget:
- name: wt
publisher: timvw
publisher_url: https://timvw.be
publisher_support_url: https://github.com/timvw/wt/issues
short_description: "A fast, simple Git worktree helper"
description: |
wt is a fast, simple Git worktree helper written in Go.
It wraps Git's native worktree commands with a convenient interface,
organized directory structure, and shell integration with auto-cd.
license: MIT
license_url: https://github.com/timvw/wt/blob/main/LICENSE
tags:
- git
- worktree
- cli
- developer-tools
release_notes_url: "https://github.com/timvw/wt/releases/tag/{{.Tag}}"
repository:
owner: timvw
name: winget-pkgs
token: "{{ .Env.WINGET_TOKEN }}"
pull_request:
enabled: true
base:
owner: microsoft
name: winget-pkgs
branch: master
# AUR package
aurs:
- name: wt-bin
homepage: https://github.com/timvw/wt
description: A fast, simple Git worktree helper
maintainers:
- 'Tim Van Wassenhove <tim@vanwassenhove.be>'
license: MIT
private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://aur@aur.archlinux.org/wt-bin.git'
package: |-
install -Dm755 wt "${pkgdir}/usr/bin/wt"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/wt/LICENSE"
release:
github:
owner: timvw
name: wt
draft: false
prerelease: auto
name_template: "{{.Tag}}"