Skip to content

Commit

Permalink
Fixed GoReleaser configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rykov committed Jun 14, 2024
1 parent c17e7ae commit 4882c59
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fetch-depth: 0
-
name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache-dependency-path: 'ui/yarn.lock'
node-version-file: 'ui/package.json'
Expand All @@ -32,15 +32,13 @@ jobs:
yarn run build
-
name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
uses: actions/setup-go@v5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
32 changes: 16 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
project_name: Paperboy
version: 2

builds:
- binary: paperboy
Expand All @@ -8,36 +9,35 @@ builds:
- windows
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 7
tags: ['{{ if .Env.BUILD_WITH_UI }}withUI{{ else }}noUI{{ end }}']
ignore:
- goos: darwin
goarch: 386
tags: ['{{ if index .Env "BUILD_WITH_UI" }}withUI{{ else }}noUI{{ end }}']

universal_binaries:
- replace: true

archives:
- format: tar.gz
wrap_in_directory: false
format_overrides:
- goos: windows
format: zip
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
name_template: >-
{{- .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else }}{{- title .Os }}{{ end }}_
{{- if eq .Arch "all" }}universal
{{- else if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
checksum:
name_template: 'checksums.txt'
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"

changelog:
skip: true
disable: true

release:
draft: true

0 comments on commit 4882c59

Please sign in to comment.