Add unversioned filenames to GitHub assets

This commit is contained in:
Carl Tashian 2023-06-14 17:17:34 -07:00
parent 67d32685c7
commit eeb912e025
No known key found for this signature in database

View file

@ -31,7 +31,7 @@ builds:
- -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}} - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
archives: archives:
- - &ARCHIVE
# Can be used to change the archive formats for specific GOOSs. # Can be used to change the archive formats for specific GOOSs.
# Most common use case is to archive as zip on Windows. # Most common use case is to archive as zip on Windows.
# Default is empty. # Default is empty.
@ -45,6 +45,11 @@ archives:
- README.md - README.md
- LICENSE - LICENSE
allow_different_binary_count: true allow_different_binary_count: true
-
<< : *ARCHIVE
id: unversioned
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
nfpms: nfpms:
# Configure nFPM for .deb and .rpm releases # Configure nFPM for .deb and .rpm releases
@ -56,7 +61,7 @@ nfpms:
# List file contents: dpkg -c dist/step_...deb # List file contents: dpkg -c dist/step_...deb
# Package metadata: dpkg --info dist/step_....deb # Package metadata: dpkg --info dist/step_....deb
# #
- - &NFPM
builds: builds:
- step-ca - step-ca
package_name: step-ca package_name: step-ca
@ -76,6 +81,10 @@ nfpms:
contents: contents:
- src: debian/copyright - src: debian/copyright
dst: /usr/share/doc/step-ca/copyright dst: /usr/share/doc/step-ca/copyright
-
<< : *NFPM
id: unversioned
file_name_template: "{{ .PackageName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
source: source:
enabled: true enabled: true
@ -190,39 +199,40 @@ release:
# - glob: ./glob/**/to/**/file/**/* # - glob: ./glob/**/to/**/file/**/*
# - glob: ./glob/foo/to/bar/file/foobar/override_from_previous # - glob: ./glob/foo/to/bar/file/foobar/override_from_previous
scoop: scoops:
# Template for the url which is determined by the given Token (github or gitlab) -
# Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}" ids: [ default ]
# Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/uploads/{{ .ArtifactUploadHash }}/{{ .ArtifactName }}" # Template for the url which is determined by the given Token (github or gitlab)
# Default for gitea is "https://gitea.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}" # Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
url_template: "http://github.com/smallstep/certificates/releases/download/{{ .Tag }}/{{ .ArtifactName }}" # Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/uploads/{{ .ArtifactUploadHash }}/{{ .ArtifactName }}"
# Default for gitea is "https://gitea.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
url_template: "http://github.com/smallstep/certificates/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Repository to push the app manifest to.
bucket:
owner: smallstep
name: scoop-bucket
# Repository to push the app manifest to. # Git author used to commit to the repository.
bucket: # Defaults are shown.
owner: smallstep commit_author:
name: scoop-bucket name: goreleaserbot
email: goreleaser@smallstep.com
# Git author used to commit to the repository. # The project name and current git tag are used in the format string.
# Defaults are shown. commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
commit_author:
name: goreleaserbot
email: goreleaser@smallstep.com
# The project name and current git tag are used in the format string. # Your app's homepage.
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}" # Default is empty.
homepage: "https://smallstep.com/docs/step-ca"
# Your app's homepage. # Skip uploads for prerelease.
# Default is empty. skip_upload: auto
homepage: "https://smallstep.com/docs/step-ca"
# Skip uploads for prerelease. # Your app's description.
skip_upload: auto # Default is empty.
description: "A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH."
# Your app's description. # Your app's license
# Default is empty. # Default is empty.
description: "A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH." license: "Apache-2.0"
# Your app's license
# Default is empty.
license: "Apache-2.0"