Files
PgTidy/.goreleaser.yaml
T
Hein 531087bfed
CI / Test (push) Successful in 24s
CI / Build snapshot (push) Successful in 1m17s
fix: fixed compile issues and added build steps
2026-06-29 08:52:21 +02:00

90 lines
1.7 KiB
YAML

project_name: pgtidy
before:
hooks:
- go mod tidy
- go vet ./...
builds:
- id: pgtidy
main: ./cmd/pgtidy
binary: pgtidy
ldflags:
- -s -w -X main.version={{ .Version }}
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
archives:
- id: pgtidy
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
formats: [zip]
files:
- LICENSE
- README.md
nfpms:
- id: pgtidy
package_name: pgtidy
vendor: Warky Devs
homepage: https://git.warky.dev/wdevs/pgtidy
maintainer: Hein (Warky Devs) <hein@warky.dev>
description: PostgreSQL SQL formatter and linter
license: MIT
formats:
- deb
- rpm
- apk
bindir: /usr/bin
contents:
- src: LICENSE
dst: /usr/share/licenses/pgtidy/LICENSE
aurs:
- name: pgtidy-bin
homepage: https://git.warky.dev/wdevs/pgtidy
description: PostgreSQL SQL formatter and linter
maintainers:
- Hein (Warky Devs) <hein@warky.dev>
license: MIT
private_key: "{{ .Env.AUR_SSH_KEY }}"
git_url: ssh://aur@aur.archlinux.org/pgtidy-bin.git
skip_upload: auto
provides:
- pgtidy
conflicts:
- pgtidy
package: |-
install -Dm755 "./pgtidy" "${pkgdir}/usr/bin/pgtidy"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/pgtidy/LICENSE"
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- "^ci:"
release:
github:
owner: hein
name: pgtidy
draft: true