Migrate goreleaser to v2
This commit is contained in:
parent
0c575021b3
commit
1c48c5c1e4
50
.goreleaser.yaml
Normal file
50
.goreleaser.yaml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
version: 2
|
||||||
|
before:
|
||||||
|
hooks:
|
||||||
|
- go mod tidy
|
||||||
|
- go generate ./...
|
||||||
|
builds:
|
||||||
|
- env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
- windows
|
||||||
|
- darwin
|
||||||
|
- openbsd
|
||||||
|
ldflags:
|
||||||
|
- -X github.com/noqqe/serra/pkg/serra.Version={{.Tag}}
|
||||||
|
flags:
|
||||||
|
- -v
|
||||||
|
main: ./cmd/serra
|
||||||
|
archives:
|
||||||
|
- id: serra
|
||||||
|
name_template: >-
|
||||||
|
{{ .ProjectName }}_
|
||||||
|
{{- title .Os }}_
|
||||||
|
{{- if eq .Arch "amd64" }}x86_64
|
||||||
|
{{- else if eq .Arch "386" }}i386
|
||||||
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- '^docs:'
|
||||||
|
- '^test:'
|
||||||
|
brews:
|
||||||
|
- name: serra
|
||||||
|
goarm: 6
|
||||||
|
repository:
|
||||||
|
owner: noqqe
|
||||||
|
name: homebrew-tap
|
||||||
|
download_strategy: CurlDownloadStrategy
|
||||||
|
commit_author:
|
||||||
|
name: goreleaserbot
|
||||||
|
email: goreleaser@carlosbecker.com
|
||||||
|
homepage: "https://github.com/noqqe/serra"
|
||||||
|
description: "serra - Personal Magic: The Gathering Collection Tracker "
|
||||||
|
license: "MIT"
|
||||||
|
test: |
|
||||||
|
system "#{bin}/serra --version"
|
||||||
|
install: |
|
||||||
|
bin.install "serra"
|
||||||
|
|
||||||
@ -1,98 +0,0 @@
|
|||||||
# This is an example .goreleaser.yml file with some sane defaults.
|
|
||||||
# Make sure to check the documentation at http://goreleaser.com
|
|
||||||
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:
|
|
||||||
- env:
|
|
||||||
- CGO_ENABLED=0
|
|
||||||
goos:
|
|
||||||
- linux
|
|
||||||
- windows
|
|
||||||
- darwin
|
|
||||||
- openbsd
|
|
||||||
ldflags:
|
|
||||||
- -X github.com/noqqe/serra/pkg/serra.Version={{.Tag}}
|
|
||||||
flags:
|
|
||||||
- -v
|
|
||||||
main: ./cmd/serra
|
|
||||||
archives:
|
|
||||||
- id: serra
|
|
||||||
name_template: >-
|
|
||||||
{{ .ProjectName }}_
|
|
||||||
{{- title .Os }}_
|
|
||||||
{{- if eq .Arch "amd64" }}x86_64
|
|
||||||
{{- else if eq .Arch "386" }}i386
|
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
|
||||||
checksum:
|
|
||||||
name_template: 'checksums.txt'
|
|
||||||
snapshot:
|
|
||||||
name_template: "{{ .Tag }}-next"
|
|
||||||
changelog:
|
|
||||||
sort: asc
|
|
||||||
filters:
|
|
||||||
exclude:
|
|
||||||
- '^docs:'
|
|
||||||
- '^test:'
|
|
||||||
brews:
|
|
||||||
-
|
|
||||||
# Name template of the recipe
|
|
||||||
# Default to project name
|
|
||||||
name: serra
|
|
||||||
|
|
||||||
# GOARM to specify which 32-bit arm version to use if there are multiple versions
|
|
||||||
# from the build section. Brew formulas support atm only one 32-bit version.
|
|
||||||
# Default is 6 for all artifacts or each id if there a multiple versions.
|
|
||||||
goarm: 6
|
|
||||||
|
|
||||||
# NOTE: make sure the url_template, the token and given repo (github or gitlab) owner and name are from the
|
|
||||||
# same kind. We will probably unify this in the next major version like it is done with scoop.
|
|
||||||
|
|
||||||
# GitHub/GitLab repository to push the formula to
|
|
||||||
# Gitea is not supported yet, but the support coming
|
|
||||||
repository:
|
|
||||||
owner: noqqe
|
|
||||||
name: homebrew-tap
|
|
||||||
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
|
|
||||||
|
|
||||||
# Allows you to set a custom download strategy. Note that you'll need
|
|
||||||
# to implement the strategy and add it to your tap repository.
|
|
||||||
# Example: https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly
|
|
||||||
# Default is empty.
|
|
||||||
download_strategy: CurlDownloadStrategy
|
|
||||||
|
|
||||||
# Git author used to commit to the repository.
|
|
||||||
# Defaults are shown.
|
|
||||||
commit_author:
|
|
||||||
name: goreleaserbot
|
|
||||||
email: goreleaser@carlosbecker.com
|
|
||||||
|
|
||||||
# Folder inside the repository to put the formula.
|
|
||||||
# Default is the root folder.
|
|
||||||
folder: Formula
|
|
||||||
|
|
||||||
# Your app's homepage.
|
|
||||||
# Default is empty.
|
|
||||||
homepage: "https://github.com/noqqe/serra"
|
|
||||||
|
|
||||||
# Your app's description.
|
|
||||||
# Default is empty.
|
|
||||||
description: "serra - Personal Magic: The Gathering Collection Tracker "
|
|
||||||
|
|
||||||
# SPDX identifier of your app's license.
|
|
||||||
# Default is empty.
|
|
||||||
license: "MIT"
|
|
||||||
|
|
||||||
# So you can `brew test` your formula.
|
|
||||||
# Default is empty.
|
|
||||||
test: |
|
|
||||||
system "#{bin}/serra --version"
|
|
||||||
|
|
||||||
# Custom install script for brew.
|
|
||||||
# Default is 'bin.install "program"'.
|
|
||||||
install: |
|
|
||||||
bin.install "serra"
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user