From dcb37557d67b593a694f1d94ba6d313a6e60cb7f Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Wed, 4 Dec 2024 16:15:33 +0100 Subject: [PATCH] change settings Signed-off-by: Moritz Wiesinger --- .github/workflows/base-release.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/base-release.yaml b/.github/workflows/base-release.yaml index dcf395ca..49326315 100644 --- a/.github/workflows/base-release.yaml +++ b/.github/workflows/base-release.yaml @@ -86,22 +86,24 @@ jobs: # otelcol-contrib is built in a separate stage - name: Build ${{ inputs.distribution }} - if: inputs.distribution == 'otelcol-contrib' && inputs.nightly != true + if: inputs.distribution == 'otelcol-contrib' uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0 with: distribution: goreleaser-pro version: ${{ env.GORELEASER_PRO_VERSION }} - workdir: distributions/otelcol-contrib - args: --snapshot --clean --timeout 2h --split --config .goreleaser-build.yaml + workdir: distributions/${{ inputs.distribution }} + args: release --clean --split --timeout 2h --config .goreleaser-build.yaml --release-header-tmpl=../../.github/release-template.md env: GOOS: ${{ matrix.GOOS }} GOARCH: ${{ matrix.GOARCH }} GOARM: 7 # Default is 6 GOAMD64: v1 GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} + GITHUB_TOKEN: ${{ secrets.GH_PAT }} + COSIGN_YES: true - name: Move built artifacts - if: inputs.distribution == 'otelcol-contrib' && inputs.nightly != true + if: inputs.distribution == 'otelcol-contrib' run: mv distributions/otelcol-contrib/dist/**/* distributions/otelcol-contrib/artifacts/ - name: Show built or downloaded content