Skip to content

Commit babf95a

Browse files
committed
fix: deployment
1 parent a6d241a commit babf95a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.goreleaser.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,28 @@ before:
1010
# Run tests before building
1111
- go test ./...
1212

13+
builds:
14+
# This is a library/plugin, so we don't need to build binaries
15+
# But we can build the examples for demonstration
16+
- id: basic-example
17+
main: ./examples/basic
18+
binary: basic-example
19+
env:
20+
- CGO_ENABLED=0
21+
goos:
22+
- linux
23+
- windows
24+
- darwin
25+
goarch:
26+
- amd64
27+
- arm64
28+
ldflags:
29+
- -s -w
30+
- -X main.version={{.Version}}
31+
- -X main.commit={{.Commit}}
32+
- -X main.date={{.Date}}
33+
mod_timestamp: '{{ .CommitTimestamp }}'
34+
1335
archives:
1436
- id: examples
1537
formats: ['tar.gz']

0 commit comments

Comments
 (0)