Skip to content

Commit

Permalink
Update goreleaser v1.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
barnybug committed Feb 23, 2023
1 parent 3460b65 commit 6f2c2bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
run: sudo apt install -y upx

- name: Make release
run: curl -sL https://git.io/goreleaser | VERSION=v0.34.2 bash
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: v1.15.2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 2 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,8 @@ builds:
- windows
goarch:
- amd64
- 386
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
hooks:
post: make upx
archive:
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
archives:
- name_template: "{{ .ProjectName }}-{{ if .Os == \"darwin\" }}mac{{ else }}{{ .Os }}{{ end }}-{{ .Arch }}"
format: binary
replacements:
darwin: mac
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ build:
install:
go install $(exe)

upx:
upx dist/cli53-linux-386/cli53-linux-386 dist/cli53-linux-arm/cli53-linux-arm dist/cli53-windows-386/cli53-windows-386.exe

test-unit:
go test

Expand Down

0 comments on commit 6f2c2bc

Please sign in to comment.