Migrate to goreleaser v2

This commit is contained in:
Dave Gallant
2024-07-21 15:12:00 -04:00
parent 0ec8aa1977
commit 86a0869bb5
2 changed files with 26 additions and 27 deletions

View File

@@ -18,13 +18,13 @@ jobs:
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: "1.22"
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: '~> v0'
args: release --rm-dist
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
CGO_ENABLED: 0

View File

@@ -1,36 +1,35 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=jcroql
version: 2
before:
hooks:
- go mod tidy
- go get -v
- rm -rf dist
builds:
-
env:
- CGO_ENABLED=0
ldflags:
- -s -w
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
amd64: x86_64
- env:
- CGO_ENABLED=0
ldflags:
- -s -w
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"
release:
github:
owner: davegallant
@@ -38,12 +37,12 @@ release:
# Check https://goreleaser.com/customization/homebrew/
brews:
- homepage: 'https://github.com/davegallant/homebrew-public'
description: 'a client for vpngate.net'
folder: Formula
- homepage: "https://github.com/davegallant/homebrew-public"
description: "a client for vpngate.net"
directory: Formula
commit_author:
name: davegallant
email: davegallant@gmail.com
tap:
repository:
owner: davegallant
name: homebrew-public