From 5225809a4d52120a59a0337df3599db94d14841a Mon Sep 17 00:00:00 2001 From: Sergio Maria Matone Date: Wed, 14 Aug 2024 12:23:42 +0200 Subject: [PATCH] chore(ci): revamping master branch goreleaser (#2694) Introducing templating for gorelease when running in master branch --- .github/goreleaser.yaml | 2 ++ .github/workflows/releaser-master.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/goreleaser.yaml b/.github/goreleaser.yaml index bf99a91feeb..1984493d36f 100644 --- a/.github/goreleaser.yaml +++ b/.github/goreleaser.yaml @@ -588,6 +588,8 @@ sboms: artifacts: source release: + disable: '{{ if eq .Env.TAG_VERSION "master" }}true{{ else }}false{{ end }}' + skip_upload: '{{ if eq .Env.TAG_VERSION "master" }}true{{ else }}false{{ end }}' draft: true replace_existing_draft: true prerelease: auto diff --git a/.github/workflows/releaser-master.yml b/.github/workflows/releaser-master.yml index dcfafdef782..96a622e3272 100644 --- a/.github/workflows/releaser-master.yml +++ b/.github/workflows/releaser-master.yml @@ -40,7 +40,7 @@ jobs: with: distribution: goreleaser-pro version: ~> v2 - args: release --clean --nightly --skip publish --config ./.github/goreleaser.yaml + args: release --clean --nightly --config ./.github/goreleaser.yaml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}