From 08af1b4505e02bf4ff68ba0194b4999381b9228c Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Thu, 15 Sep 2022 08:40:40 +0200 Subject: [PATCH] Add goreleaser config --- .gitignore | 2 ++ .goreleaser.yaml | 32 ++++++++++++++++++++++++++++++++ go.mod | 8 ++++---- 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index 0ede670..980e491 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ go.work *.html + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..c22050b --- /dev/null +++ b/.goreleaser.yaml @@ -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 diff --git a/go.mod b/go.mod index 4aedba8..2187a7f 100644 --- a/go.mod +++ b/go.mod @@ -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