Skip to content

Commit

Permalink
feat: update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu committed Aug 5, 2023
1 parent ebc42af commit ae51973
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
tags:
- '*'
- "*"

jobs:
goreleaser:
Expand All @@ -23,7 +23,7 @@ jobs:
mkdir -p $HOME/.cache/snapcraft/download
mkdir -p $HOME/.cache/snapcraft/stage-packages
- name: goreleaser-setup
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
Expand Down
25 changes: 13 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,31 @@ builds:

archives:
- id: default
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
files:
- LICENSE

checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"

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

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

snapcrafts:
- name: clockify-cli
Expand All @@ -47,10 +48,10 @@ snapcrafts:

apps:
clockify-cli:
plugs: ['network']
plugs: ["network"]

brews:
- tap:
- repository:
owner: lucassabreu
name: homebrew-tap
folder: Formula
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tag=
release: ## releases a tagged version
sed "/^## \[$(tag)/, /^## \[/!d" CHANGELOG.md | tail -n +2 | head -n -2 > /tmp/rn.md
curl -sL https://git.io/goreleaser | bash /dev/stdin --release-notes /tmp/rn.md \
--rm-dist $(if $(SNAPSHOT),--snapshot --skip-publish,)
--clean $(if $(SNAPSHOT),--snapshot --skip-publish,)
ifneq ($(SNAPSHOT),1)
curl -X POST -d '{"trigger_branch":"$(tag)","trigger_title":"Releasing $(tag)"}' https://api.netlify.com/build_hooks/5eef4f99028bddbb4093e4c6 -v
endif
Expand Down

0 comments on commit ae51973

Please sign in to comment.