From a15be71c8eeea864d5b25753af6a906a07f7e837 Mon Sep 17 00:00:00 2001 From: Per Goncalves da Silva Date: Thu, 2 Oct 2025 15:28:59 +0200 Subject: [PATCH] Fixup release job Signed-off-by: Per Goncalves da Silva --- .github/workflows/release.yml | 5 ++--- .goreleaser.yml | 12 ------------ 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 099a34e..f155cb3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,13 +38,12 @@ jobs: - name: Set the release related variables run: | if [[ $GITHUB_REF == refs/tags/* ]]; then - # Release tags. echo VERSION="$(echo "${GITHUB_REF#refs/tags/}" | sed 's/^v//')" >> $GITHUB_ENV + echo GORELEASER_ARGS="--clean" >> $GITHUB_ENV echo ENABLE_RELEASE_PIPELINE=true >> $GITHUB_ENV elif [[ $GITHUB_REF == refs/heads/main ]]; then - # 'main' branch build. echo TAG=snapshot >> $GITHUB_ENV - echo ENABLE_RELEASE_PIPELINE=true >> $GITHUB_ENV + echo GORELEASER_ARGS="--clean" >> $GITHUB_ENV fi - name: Release diff --git a/.goreleaser.yml b/.goreleaser.yml index 8faa251..d739cfa 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -164,15 +164,3 @@ changelog: release: disable: '{{ ne .Env.ENABLE_RELEASE_PIPELINE "true" }}' mode: replace -# extra_files: -# - glob: '{{ .Env.STANDARD_RELEASE_MANIFEST }}' -# - glob: '{{ .Env.STANDARD_RELEASE_INSTALL }}' -# - glob: '{{ .Env.EXPERIMENTAL_RELEASE_MANIFEST }}' -# - glob: '{{ .Env.EXPERIMENTAL_RELEASE_INSTALL }}' -# - glob: '{{ .Env.RELEASE_CATALOGS }}' -# header: | -# ## Installation -# -# ```bash -# curl -L -s https://github.com/operator-framework/operator-controller/releases/download/{{ .Tag }}/install.sh | bash -s -# ```