Skip to content

Commit

Permalink
update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
mqasimsarfraz committed Jan 28, 2025
1 parent df3115b commit 8215b64
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
dist
imagesync
imagesync# Added by goreleaser init:
dist/
18 changes: 10 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- apt update
Expand All @@ -16,17 +18,17 @@ builds:
- goos: darwin
goarch: 386
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
linux: Linux
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 }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^*.sh:'
- '^*.sh:'
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ docker run -it --rm \
-v "$PWD":/src \
-w /src \
-e GITHUB_TOKEN="${GITHUB_TOKEN}" \
ghcr.io/goreleaser/goreleaser-cross:v1.19.1 release --rm-dist
ghcr.io/goreleaser/goreleaser-cross:v1.23.5 release

0 comments on commit 8215b64

Please sign in to comment.