Skip to content

Commit

Permalink
normalize release with other repos
Browse files Browse the repository at this point in the history
  • Loading branch information
kmulvey committed Apr 16, 2024
1 parent 87bff97 commit c93edf6
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 13 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ jobs:
cache: true
go-version: "1.22"

- name: changelog
run: |
go install -v github.com/goreleaser/chglog/cmd/chglog@latest
chglog format --template repo > CHANGELOG.md
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
87 changes: 79 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ before:
builds:
- id: imagedup
main: ./cmd/nsquared/main.go
binary: imagedup
binary: nsquared
env:
- CGO_ENABLED=0
ldflags:
Expand Down Expand Up @@ -63,8 +63,21 @@ builds:
- amd64
- arm64

release:
github:
owner: kmulvey
name: imagedup
# Whether to remove existing draft releases with the same name before creating
replace_existing_draft: true
# Whether to remove an artifact that already exists.
replace_existing_artifacts: true

archives:
- id: dist
builds:
- nsquared
- uniqdirs
- verify
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
Expand All @@ -73,11 +86,69 @@ archives:
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
name_template: "{{ incpatch .Version }}-snapshot"


nfpms:
# note that this is an array of nfpm configs
- # ID of the nfpm config, must be unique.
id: imagedup

package_name: imagedup

builds:
- nsquared
- uniqdirs
- verify

# Your app's vendor.
vendor: Kevin Mulvey

# Your app's homepage.
homepage: https://github.com/kmulvey/imagedup

# Your app's maintainer (probably you).
maintainer: Drummer <drum-roll@example.com>

# Your app's description.
description: |-
Find similar images in large image libraries with perceptual hashing
# Your app's license.
license: MIT

# Formats to be generated.
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux

provides:
- nsquared
- uniqdirs
- verify

# Path that the binaries should be installed.
# Default: '/usr/bin'
bindir: /usr/bin

# Custom configuration applied only to the RPM packager.
rpm:
group: root
compression: lzma
# The package is signed if a key_file is set
#signature:
# PGP secret key file path (can also be ASCII-armored).
# The passphrase is taken from the environment variable
# `$NFPM_ID_RPM_PASSPHRASE` with a fallback to `$NFPM_ID_PASSPHRASE`,
# where ID is the id of the current nfpm config.
# The id will be transformed to uppercase.
# E.g. If your nfpm id is 'default' then the rpm-specific passphrase
# should be set as `$NFPM_DEFAULT_RPM_PASSPHRASE`
#
# Templates: allowed
#key_file: "/home/kmulvey/keys/sec.gpg"

0 comments on commit c93edf6

Please sign in to comment.