Add goreleaser config

This commit is contained in:
Johannes Rothe 2022-09-15 08:40:40 +02:00 committed by Johannes Rothe
parent ccfb856a04
commit 82782a471b
3 changed files with 38 additions and 4 deletions

2
.gitignore vendored
View File

@ -22,3 +22,5 @@
go.work
*.html
dist/

32
.goreleaser.yaml Normal file
View File

@ -0,0 +1,32 @@
# 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
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
archives:
- replacements:
linux: Linux
windows: Windows
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
gitea_urls:
api: https://git.johannes-rothe.de/api/v1/
download: https://git.johannes-rothe.de

8
go.mod
View File

@ -2,9 +2,9 @@ module confluence-space-exporter
go 1.18
require github.com/alexflint/go-arg v1.4.3
require (
github.com/alexflint/go-scalar v1.1.0 // indirect
golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect
github.com/alexflint/go-arg v1.4.3
golang.org/x/net v0.0.0-20220909164309-bea034e7d591
)
require github.com/alexflint/go-scalar v1.1.0 // indirect