diff --git a/.gitignore b/.gitignore index 1080219..97eb886 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ _site /gojekyll /gojekyll-race coverage.out + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..308919f --- /dev/null +++ b/.goreleaser.yaml @@ -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:' diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 1c2214c..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -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