diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index a0e1261..9119912 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -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 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5dfc649..54cbed7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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