Skip to content

Commit

Permalink
upgrade goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
justmiles committed Dec 29, 2023
1 parent e40f925 commit 624f39c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ dist
***/*.secret
test-docs
markdown2confluence.db

dist/
26 changes: 16 additions & 10 deletions .goreleaser.yml → .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
before:
hooks:
- go mod download

dockers:
-
image_templates:
Expand All @@ -21,14 +17,25 @@ builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- windows
- linux
- windows
- darwin
binary: markdown2confluence

archives:
- replacements:
386: i386
amd64: x86_64
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
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 }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
Expand All @@ -39,4 +46,3 @@ changelog:
exclude:
- "^docs:"
- "^test:"
- "^scratch:"

0 comments on commit 624f39c

Please sign in to comment.