Skip to content

Commit

Permalink
[goreleaser] Switch from deprecated --rm-dist to --clean
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-psi committed May 25, 2023
1 parent 41ac44f commit c646214
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
distribution: goreleaser-pro
version: latest
args: --snapshot --rm-dist --skip-sign --skip-sbom --timeout 2h --split
args: --snapshot --clean --skip-sign --skip-sbom --timeout 2h --split
env:
GOOS: ${{ matrix.GOOS }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
distribution: goreleaser-pro
version: latest
args: release --rm-dist --split --timeout 2h
args: release --clean --split --timeout 2h
env:
GOOS: ${{ matrix.GOOS }}
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ generate-sources: go ocb
@./scripts/build.sh -d "${DISTRIBUTIONS}" -s true -b ${OTELCOL_BUILDER} -g ${GO}

goreleaser-verify: goreleaser
@${GORELEASER} release --snapshot --rm-dist
@${GORELEASER} release --snapshot --clean

ensure-goreleaser-up-to-date: generate-goreleaser
@git diff -s --exit-code .goreleaser.yaml || (echo "Build failed: The goreleaser templates have changed but the .goreleaser.yaml hasn't. Run 'make generate-goreleaser' and update your PR." && exit 1)
Expand Down

0 comments on commit c646214

Please sign in to comment.