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 -# ```