From a659417ed2a213924c9e7b5ce30f0bdf7fe47ee1 Mon Sep 17 00:00:00 2001 From: punkwalker <126026317+punkwalker@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:06:38 -0700 Subject: [PATCH] Updates goreleaser.yaml to mark nightly builds as pre-release (#460) --- .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: