diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 380810e36e5..6572ed0a7b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,11 +18,13 @@ jobs: uses: actions/setup-go@v5 with: go-version: '~1.22' + - name: Clean dist directory + run: rm -rf dist || true - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: version: v2.1.0 - args: release -f ./build/.goreleaser.yml --rm-dist + args: release -f ./build/.goreleaser.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload assets