From 35733a6079940cd44fa8429360c96a126fd83a20 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 19 May 2024 19:44:44 -0600 Subject: [PATCH] chore: fix goreleaser Signed-off-by: Matthew Penner --- .goreleaser.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e810d29..ff8479e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,13 +1,19 @@ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json version: 1 +before: + hooks: + - go mod tidy + - /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi' + metadata: mod_timestamp: "{{ .CommitTimestamp }}" report_sizes: true builds: - - main: ./cmd + - dir: ./cmd + main: . binary: caddy-gateway env: - CGO_ENABLED=0 @@ -74,9 +80,6 @@ docker_signs: release: draft: true prerelease: auto - github: - owner: caddyserver - name: gateway changelog: use: github