Skip to content

Commit 71c2e5b

Browse files
committed
ci: Add goreleaser config
1 parent 3bc2c45 commit 71c2e5b

3 files changed

Lines changed: 47 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
*.log
44
bin/
5+
dist/

.goreleaser.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: 2
2+
before:
3+
hooks:
4+
- go mod tidy
5+
builds:
6+
- binary: grab
7+
main: ./cmd/grab
8+
goos:
9+
- darwin
10+
- linux
11+
- windows
12+
goarch:
13+
- amd64
14+
- arm64
15+
env:
16+
- CGO_ENABLED=0
17+
ldflags:
18+
- -s -w
19+
- -X github.com/epilande/codegrab/internal/utils.Version={{.Version}}
20+
- -X github.com/epilande/codegrab/internal/utils.CommitSHA={{.ShortCommit}}
21+
archives:
22+
- formats: [tar.gz]
23+
name_template: >-
24+
{{ .ProjectName }}_
25+
{{- .Version }}_
26+
{{- title .Os }}_
27+
{{- if eq .Arch "amd64" }}x86_64
28+
{{- else if eq .Arch "386" }}i386
29+
{{- else }}{{ .Arch }}{{ end }}
30+
{{- if .Arm }}v{{ .Arm }}{{ end }}
31+
format_overrides:
32+
- goos: windows
33+
formats: [zip]
34+
checksum:
35+
name_template: "checksums.txt"
36+
changelog:
37+
sort: asc
38+
filters:
39+
exclude:
40+
- "^docs:"
41+
- "^test:"
42+
- "^ci:"
43+
- "^chore:"

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<strong>An interactive CLI tool for selecting and bundling code into a single, LLM-ready output file.</strong>
77
</p>
88

9-
![codegrab-demo](https://github.com/user-attachments/assets/5cb7be38-16c9-4613-9f56-cf89e0a9175e)
9+
![codegrab-demo](https://github.com/user-attachments/assets/77b8984e-913f-4646-a1f7-e4d16aa8f7b5)
1010

1111
## ❓ Why?
1212

@@ -60,6 +60,8 @@ Then move the binary to your `PATH`
6060

6161
CodeGrab will generate `codegrab-output.md` in your current working directory (on macOS this file is automatically copied to your clipboard), which you can immediately send to an AI assistant for better context-aware coding assistance.
6262

63+
https://github.com/user-attachments/assets/48f245f4-695d-4cea-8fc0-4b0158bb46a5
64+
6365
## 🎮 Usage
6466

6567
```sh

0 commit comments

Comments
 (0)