Skip to content

Commit

Permalink
Update release artifacts
Browse files Browse the repository at this point in the history
- Disable 32-bit builds
- Upload unpacked binaries
- Use goreleaser version 2
- Use stable Go version
- Use Ubuntu 24.04
  • Loading branch information
5nord committed Nov 5, 2024
1 parent 9827672 commit 15ece2f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
- v*.*
jobs:
goreleaser:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Unshallow Fetch
run: git fetch --prune --unshallow
- uses: actions/setup-go@v2
with:
go-version: '^1.16'
go-version: stable
- name: Release via goreleaser
uses: goreleaser/goreleaser-action@master
with:
Expand Down
24 changes: 16 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- go mod download
Expand All @@ -11,10 +12,7 @@ builds:
- darwin
- windows
ignore:
- goos: darwin
goarch: '386'
- goos: windows
goarch: '386'
- goarch: '386'
- goos: windows
goarch: arm64

Expand All @@ -40,7 +38,20 @@ nfpms:
bindir: /usr/bin

archives:
- name_template: >-
- id: binaries
format: binary
wrap_in_directory: true
name_template: >-
{{- .Binary }}_
{{- tolower .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
- id: archives
format: tar.gz
name_template: >-
{{- .ProjectName }}_
{{- tolower .Os }}_
{{- if eq .Arch "amd64" }}x86_64
Expand All @@ -54,8 +65,5 @@ archives:
checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

release:
draft: true

0 comments on commit 15ece2f

Please sign in to comment.