Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,28 @@ on:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.15
go-version: 1.21
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
Expand Down
32 changes: 7 additions & 25 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
env:
- GO111MODULE=on
before:
hooks:
- go mod download
Expand All @@ -14,21 +12,17 @@ builds:
- netbsd
- openbsd
goarch:
- 386
- amd64
- arm
- arm64
- ppc64le
- mips64le
- s390x
goarm:
- 5
- 7
- "5"
- "7"
gomips:
- hardfloat
ignore:
- goos: windows
goarch: 386
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -45,20 +39,8 @@ nfpms:
formats:
- deb
- rpm
overrides:
deb:
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}"
replacements:
386: i386
5: el
7: hf
mips64le: mips64el
rpm:
file_name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}"
replacements:
386: i386
amd64: x86_64
arm64: aarch64
5: v7l
7: v7hnl
mips64le: mips64el
file_name_template: >-
{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}
{{- if and (eq .Arm "6") (eq .ConventionalExtension ".deb") }}6{{ end -}}
{{- if not (eq .Amd64 "v1")}}{{ .Amd64 }}{{ end -}}
{{- .ConventionalExtension -}}