This commit is contained in:
Warky 2024-12-07 12:18:31 +02:00
parent f7c73494e0
commit 99658f3566

View File

@ -1,9 +1,8 @@
before: project_name: go-mdtopdf-helper
hooks:
- go mod tidy
builds: builds:
- env: - id: go-mdtopdf-helper
env:
- CGO_ENABLED=0 - CGO_ENABLED=0
goos: goos:
- linux - linux
@ -15,14 +14,16 @@ builds:
ignore: ignore:
- goos: windows - goos: windows
goarch: arm64 goarch: arm64
main: .
binary: go-mdtopdf-helper binary: go-mdtopdf-helper
ldflags: ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} - -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
archives: archives:
- format: tar.gz - id: default
format: tar.gz
name_template: >- name_template: >-
{{ .ProjectName }}_ {{ .ProjectName }}_{{ .Version }}_
{{- title .Os }}_ {{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64 {{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}arm64 {{- else if eq .Arch "arm64" }}arm64
@ -30,10 +31,17 @@ archives:
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip
files:
- LICENSE*
- README*
- CHANGELOG*
checksum: checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog: changelog:
sort: asc sort: asc
filters: filters:
@ -45,15 +53,9 @@ changelog:
- Merge branch - Merge branch
release: release:
github:
owner: "{{.Env.GITHUB_REPOSITORY_OWNER}}"
name: "{{.Env.GITHUB_REPOSITORY}}"
draft: false
prerelease: auto prerelease: auto
mode: replace
brews:
- name: go-mdtopdf-helper
homepage: "https://github.com/yourusername/go-mdtopdf-helper"
description: "A tool to convert Markdown files to PDF using wkhtmltopdf"
tap:
owner: yourusername
name: homebrew-tools
commit_author:
name: goreleaserbot
email: bot@goreleaser.com