Skip to content

Commit e3a854b

Browse files
authored
update goreleaser (#67)
1 parent 99b21e7 commit e3a854b

2 files changed

Lines changed: 33 additions & 25 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88

99
permissions:
1010
contents: write
11-
# packages: write
12-
# issues: write
13-
# id-token: write
1411

1512
jobs:
1613
goreleaser:
@@ -23,19 +20,14 @@ jobs:
2320
- name: Set up Go
2421
uses: actions/setup-go@v5
2522
with:
26-
go-version: '1.25'
23+
go-version: '1.26'
2724
check-latest: true
28-
# More assembly might be required: Docker logins, GPG, etc.
29-
# It all depends on your needs.
3025
- name: Run GoReleaser
3126
uses: goreleaser/goreleaser-action@v6
3227
with:
33-
# either 'goreleaser' (default) or 'goreleaser-pro'
3428
distribution: goreleaser
35-
# 'latest', 'nightly', or a semver
3629
version: "~> v2"
3730
args: release --clean
3831
env:
3932
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
41-
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
33+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,49 @@ before:
1515
builds:
1616
- env:
1717
- CGO_ENABLED=0
18-
goos:
19-
- darwin
2018

2119
main: ./cmd/meeseeks
2220
binary: meeseeks
2321
ldflags:
2422
- "-s -w"
2523
- -X main.version={{.Version}}
24+
goos:
25+
- darwin
26+
goarch:
27+
- amd64
28+
- arm64
2629

2730
archives:
28-
- formats: [tar.gz]
29-
name_template: >-
30-
{{ .ProjectName }}_
31-
{{- title .Os }}_
32-
{{- if eq .Arch "amd64" }}x86_64
33-
{{- else if eq .Arch "386" }}i386
34-
{{- else }}{{ .Arch }}{{ end }}
35-
{{- if .Arm }}v{{ .Arm }}{{ end }}
36-
# use zip for windows archives
37-
format_overrides:
38-
- goos: windows
39-
formats: [zip]
31+
- formats:
32+
- binary
33+
name_template: "meeseeks_{{ .Tag }}_{{ .Os }}-{{ .Arch }}{{if .Arm}}_{{.Arm}}{{end}}"
34+
35+
snapshot:
36+
version_template: "{{ incpatch .Version }}-devel"
37+
38+
checksum:
39+
name_template: "checksums.txt"
4040

4141
changelog:
4242
sort: asc
4343
use: github
4444
filters:
4545
exclude:
46-
- "^docs:"
4746
- "^test:"
47+
- "^chore"
48+
- "merge conflict"
49+
- Merge pull request
50+
- Merge remote-tracking branch
51+
- Merge branch
52+
- go mod tidy
53+
54+
homebrew_casks:
55+
- name: meeseeks
56+
binaries:
57+
- meeseeks
58+
repository:
59+
owner: GustavoCaso
60+
name: homebrew-tap
61+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
62+
homepage: "https://github.com/GustavoCaso/meeseeks"
63+
description: "A simple and lightweight process manager for Go applications and CLI tool that simplify managing background processes"

0 commit comments

Comments
 (0)