Skip to content

Commit

Permalink
fix: fixing archive name issues in goreleaser (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelwhix authored Sep 25, 2024
1 parent d5f35ec commit 64ca24b
Showing 1 changed file with 18 additions and 52 deletions.
70 changes: 18 additions & 52 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...

builds:
- binary: treblle
Expand All @@ -26,6 +24,7 @@ builds:
- linux
- darwin
- windows
- freebsd
goarm:
- 6
- 7
Expand All @@ -36,9 +35,6 @@ builds:
release:
prerelease: auto

universal_binaries:
- replace: true

brews:
-
name: treblle
Expand All @@ -50,53 +46,6 @@ brews:
name: Steve McDougall
email: [email protected]

checksum:
name_template: 'checksums.txt'

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{ .Tag }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

winget:
- name: treblle
publisher: Treblle
short_description: "API Insights scores your API using over 30 tests taken from standards and industry best practices across three categories; Performance, Quality, & Security"
license: "MIT"
publisher_url: https://goreleaser.com
publisher_support_url: "https://github.com/treblle/treblle-cli/issues/new"
package_identifier: treblle.cli
goamd64: v1
url_template: "https://github.com/treblle/treblle-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "{{ .PackageIdentifier }}: {{ .Tag }}"
path: manifests/t/treblle/cli/{{ .Tag }}
homepage: "https://www.treblle.com/"
description: "API Insights scores your API using over 30 tests taken from standards and industry best practices across three categories; Performance, Quality, & Security"
copyright: "Treblle"
release_notes: "{{.Changelog}}"
tags:
- api
- api-insights
- api-testing
- api-performance
- api-security
- api-quality

chocolateys:
- name: treblle
title: Treblle CLI
Expand All @@ -122,6 +71,23 @@ chocolateys:
api_key: "{{ secrets.CHOCOLATEY_API_KEY }}"
source_repo: "https://push.chocolatey.org/"

checksum:
name_template: 'checksums.txt'

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_{{ title .Os }}_{{ .Version }}_{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}_v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

changelog:
sort: asc
filters:
Expand Down

0 comments on commit 64ca24b

Please sign in to comment.