Skip to content

Commit

Permalink
fix: goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
wowu committed Nov 13, 2024
1 parent bf51711 commit a5fc722
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
with:
go-version: 1.23.0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --rm-dist
version: v1.26.2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_REPO_TOKEN: ${{ secrets.GORELEASER_REPO_TOKEN }}
Expand Down
19 changes: 11 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 1

release:
name_template: "pro v{{.Version}}"

Expand Down Expand Up @@ -28,7 +30,7 @@ builds:
goarch: [amd64, arm64]

brews:
- tap:
- repository:
owner: wowu
name: homebrew-tap
token: "{{ .Env.GORELEASER_REPO_TOKEN }}"
Expand All @@ -37,6 +39,7 @@ brews:

nfpms:
- id: packages
maintainer: wowu
file_name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
license: MIT
homepage: https://github.com/wowu/pro
Expand All @@ -45,13 +48,13 @@ nfpms:
- deb
- rpm

scoop:
bucket:
owner: wowu
name: scoop
token: "{{ .Env.GORELEASER_REPO_TOKEN }}"
description: A single command to quickly open current PR in browser.
license: MIT
scoops:
- repository:
owner: wowu
name: scoop
token: "{{ .Env.GORELEASER_REPO_TOKEN }}"
description: A single command to quickly open current PR in browser.
license: MIT

publishers:
- name: fury.io
Expand Down

0 comments on commit a5fc722

Please sign in to comment.