Skip to content

Commit 4882c59

Browse files
committed
Fixed GoReleaser configuration
1 parent c17e7ae commit 4882c59

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

.github/workflows/goreleaser.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fetch-depth: 0
2020
-
2121
name: Install Node
22-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2323
with:
2424
cache-dependency-path: 'ui/yarn.lock'
2525
node-version-file: 'ui/package.json'
@@ -32,15 +32,13 @@ jobs:
3232
yarn run build
3333
-
3434
name: Install Go
35-
uses: actions/setup-go@v4
36-
with:
37-
go-version-file: 'go.mod'
35+
uses: actions/setup-go@v5
3836
-
3937
name: Run GoReleaser
40-
uses: goreleaser/goreleaser-action@v2
38+
uses: goreleaser/goreleaser-action@v6
4139
with:
4240
distribution: goreleaser
43-
version: latest
41+
version: '~> v2'
4442
args: release --clean
4543
env:
4644
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
project_name: Paperboy
2+
version: 2
23

34
builds:
45
- binary: paperboy
@@ -8,36 +9,35 @@ builds:
89
- windows
910
goarch:
1011
- amd64
11-
- 386
12-
- arm
1312
- arm64
1413
goarm:
1514
- 7
16-
tags: ['{{ if .Env.BUILD_WITH_UI }}withUI{{ else }}noUI{{ end }}']
17-
ignore:
18-
- goos: darwin
19-
goarch: 386
15+
tags: ['{{ if index .Env "BUILD_WITH_UI" }}withUI{{ else }}noUI{{ end }}']
16+
17+
universal_binaries:
18+
- replace: true
2019

2120
archives:
2221
- format: tar.gz
2322
wrap_in_directory: false
2423
format_overrides:
2524
- goos: windows
2625
format: zip
27-
replacements:
28-
amd64: 64bit
29-
386: 32bit
30-
arm: ARM
31-
arm64: ARM64
32-
darwin: macOS
33-
linux: Linux
34-
windows: Windows
26+
name_template: >-
27+
{{- .ProjectName }}_{{ .Version }}_
28+
{{- if eq .Os "darwin" }}macOS
29+
{{- else }}{{- title .Os }}{{ end }}_
30+
{{- if eq .Arch "all" }}universal
31+
{{- else if eq .Arch "amd64" }}x86_64
32+
{{- else if eq .Arch "386" }}i386
33+
{{- else }}{{ .Arch }}{{ end }}
34+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
3535
3636
checksum:
37-
name_template: 'checksums.txt'
37+
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
3838

3939
changelog:
40-
skip: true
40+
disable: true
4141

4242
release:
4343
draft: true

0 commit comments

Comments
 (0)