Skip to content

Commit

Permalink
Update goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
theandrew168 committed May 4, 2024
1 parent cfd1184 commit e480620
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
19 changes: 4 additions & 15 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,22 @@ builds:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- windows
goarch:
- amd64
- arm
- arm64
goarm:
- 6 # Raspberry Pi A, B, Zero
- 7 # Raspberry Pi 2, 3, 4

archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- none*
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

nfpms:
- package_name: pg2s3
file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
homepage: https://github.com/theandrew168/pg2s3
maintainer: Andrew Dailey <[email protected]>
description: Simple PostgreSQL backups to S3-compatible storage
Expand All @@ -48,12 +43,6 @@ nfpms:
preremove: script/preremove.sh
postremove: script/postremove.sh

checksum:
name_template: checksums.txt

snapshot:
name_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
filters:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cover:

.PHONY: release
release:
goreleaser release --snapshot --rm-dist
goreleaser release --clean --snapshot

.PHONY: lint
lint:
Expand Down

0 comments on commit e480620

Please sign in to comment.