Skip to content

Commit

Permalink
Merge pull request #227 from articulate/dependabot/github_actions/act…
Browse files Browse the repository at this point in the history
…ions-fcf4e41b5c

build(deps): bump goreleaser/goreleaser-action from 5 to 6 in the actions group
  • Loading branch information
mloberg authored Jul 12, 2024
2 parents 2b94b77 + 371b315 commit e822ef2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
go-version-file: go.mod
check-latest: true
cache: true
- uses: goreleaser/goreleaser-action@v5
- uses: goreleaser/goreleaser-action@v6
with:
args: release
env:
Expand Down
21 changes: 11 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
- goos:
- linux
goarch:
- amd64
- arm64
flags:
- -trimpath
- -mod=readonly
ldflags:
- -s -w
goos:
- linux
goarch:
- amd64
- arm64
hooks:
post:
- upx --brute {{ .Path }}
env:
- CGO_ENABLED=0
upx:
- enabled: true
brute: true
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
format: binary
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ help:

build: ## Build binary
@echo "+ $@"
@goreleaser build --snapshot --rm-dist --skip-post-hooks
@goreleaser build --snapshot --clean
.PHONY: build

generate: ## Autogenerate code and resources
Expand Down

0 comments on commit e822ef2

Please sign in to comment.