mirror of
https://github.com/davegallant/vpngate.git
synced 2025-08-07 00:58:14 +00:00
Migrate to goreleaser v2
This commit is contained in:
6
.github/workflows/goreleaser.yml
vendored
6
.github/workflows/goreleaser.yml
vendored
@@ -18,13 +18,13 @@ jobs:
|
|||||||
name: Set up Go
|
name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: 1.22
|
go-version: "1.22"
|
||||||
-
|
-
|
||||||
name: Run GoReleaser
|
name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v6
|
||||||
with:
|
with:
|
||||||
version: '~> v0'
|
version: '~> v2'
|
||||||
args: release --rm-dist
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
@@ -1,11 +1,14 @@
|
|||||||
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
||||||
|
# vim: set ts=2 sw=2 tw=0 fo=jcroql
|
||||||
|
version: 2
|
||||||
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- go get -v
|
- go get -v
|
||||||
- rm -rf dist
|
- rm -rf dist
|
||||||
builds:
|
builds:
|
||||||
-
|
- env:
|
||||||
env:
|
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w
|
- -s -w
|
||||||
@@ -16,21 +19,17 @@ builds:
|
|||||||
- amd64
|
- amd64
|
||||||
- arm
|
- arm
|
||||||
- arm64
|
- arm64
|
||||||
archives:
|
|
||||||
- replacements:
|
|
||||||
darwin: Darwin
|
|
||||||
linux: Linux
|
|
||||||
amd64: x86_64
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: "checksums.txt"
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{ .Tag }}"
|
name_template: "{{ .Tag }}"
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
|
use: github
|
||||||
filters:
|
filters:
|
||||||
exclude:
|
exclude:
|
||||||
- '^docs:'
|
- "^docs:"
|
||||||
- '^test:'
|
- "^test:"
|
||||||
release:
|
release:
|
||||||
github:
|
github:
|
||||||
owner: davegallant
|
owner: davegallant
|
||||||
@@ -38,12 +37,12 @@ release:
|
|||||||
|
|
||||||
# Check https://goreleaser.com/customization/homebrew/
|
# Check https://goreleaser.com/customization/homebrew/
|
||||||
brews:
|
brews:
|
||||||
- homepage: 'https://github.com/davegallant/homebrew-public'
|
- homepage: "https://github.com/davegallant/homebrew-public"
|
||||||
description: 'a client for vpngate.net'
|
description: "a client for vpngate.net"
|
||||||
folder: Formula
|
directory: Formula
|
||||||
commit_author:
|
commit_author:
|
||||||
name: davegallant
|
name: davegallant
|
||||||
email: davegallant@gmail.com
|
email: davegallant@gmail.com
|
||||||
tap:
|
repository:
|
||||||
owner: davegallant
|
owner: davegallant
|
||||||
name: homebrew-public
|
name: homebrew-public
|
||||||
|
Reference in New Issue
Block a user