ci setup (pls work)

This commit is contained in:
2026-04-21 06:02:31 +02:00
parent 26924a5c01
commit ecc4169cd9
5 changed files with 117 additions and 47 deletions
+39
View File
@@ -0,0 +1,39 @@
version: 2
builds:
- id: pastebin
binary: pastebin
main: .
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
flags:
- -trimpath
- -tags=netgo
ldflags:
- -s -w -extldflags "-static"
- -X main.Version={{.Version}}
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
name_template: "pastebin_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
algorithm: sha256
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'