diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d99fcc3..12a0d8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,10 +33,10 @@ jobs: go-version: ${{ env.GO_VERSION }} - name: Run goreleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 344158e..e2ef75b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + before: hooks: - go mod tidy diff --git a/Makefile b/Makefile index fd40e93..8550916 100644 --- a/Makefile +++ b/Makefile @@ -116,11 +116,11 @@ test-load: tmp ## sends 200 documents to a running instance .PHONY: release-test release-test: ## runs goreleaser, but skips publishing - goreleaser release --rm-dist --skip-publish + goreleaser release --clean --skip=publish .PHONY: release-publish release-publish: ## runs goreleaser and publishes artifacts - goreleaser release --rm-dist + goreleaser release --clean .PHONY: docker-latest docker-latest: build ## builds a Docker container with the latest binary