Allow UPX to fail, and use goreleaser-pro

This commit is contained in:
Dustin Decker 2024-10-17 09:19:49 -07:00
parent c49e8db15e
commit e14df49abf
2 changed files with 3 additions and 2 deletions

View file

@ -46,9 +46,10 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
distribution: goreleaser-pro
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

View file

@ -13,7 +13,7 @@ builds:
- arm64
hooks:
post:
- bash -c 'if [ "{{ .Env.GGOOS }}" != "darwin" ]; then upx -q "{{ .Path }}"; fi'
- bash -c 'if [ "{{ .Env.GGOOS }}" != "darwin" ]; then upx -q "{{ .Path }}" || true; fi'
dockers:
- image_templates: ["trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64"]
dockerfile: Dockerfile.goreleaser