From bcd4a7b13424ca57c0e9b3909dbdf895c9e5ad6f Mon Sep 17 00:00:00 2001 From: punkwalker Date: Fri, 22 Nov 2024 12:15:50 -0800 Subject: [PATCH] updates goreleaser.yaml to mark nightly builds as pre-release --- .goreleaser.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3e10aa96..8cc9ca8c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,6 +3,10 @@ project_name: idpbuilder before: hooks: - go mod tidy +release: + # Mark nightly build as prerelease based on tag + prerelease: '{{ contains .Tag "-nightly" }}' + builds: - env: - CGO_ENABLED=0 @@ -29,7 +33,7 @@ archives: checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ incpatch .Version }}-next" + version_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: