1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-30 04:09:00 +01:00

Add goreleaser

This commit is contained in:
Daniil Gentili 2022-01-29 20:48:04 +01:00
parent 5a72cb20eb
commit 5e4a82d467
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 40 additions and 17 deletions

2
.gitignore vendored
View File

@ -4,3 +4,5 @@ _site
/gojekyll /gojekyll
/gojekyll-race /gojekyll-race
coverage.out coverage.out
dist/

38
.goreleaser.yaml Normal file
View File

@ -0,0 +1,38 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

View File

@ -1,17 +0,0 @@
build:
main: main.go
binary: gojekyll
ldflags: -s -w -X gojekyll/cmd.Version={{.Version}} -X gojekyll/cmd.BuildDate={{.Date}}
goos:
- linux
goarch:
- amd64
- 386
archive:
replacements:
amd64: 64bit
386: 32bit
darwin: macOS
linux: Linux
release:
draft: true