diff --git a/.github/workflows/image_publish.yml b/.github/workflows/image_publish.yml index 7ba281cd..c4dadda4 100644 --- a/.github/workflows/image_publish.yml +++ b/.github/workflows/image_publish.yml @@ -35,4 +35,3 @@ jobs: docker push ${{ secrets.DOCKER_USER }}/milvus-cdc:${BRANCH}-latest - diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 465713ac..4f8f632a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,13 +23,13 @@ jobs: cache-dependency-path: server/go.sum cache: true - - uses: goreleaser/goreleaser-action@v4 + - uses: goreleaser/goreleaser-action@v6 with: # either 'goreleaser' (default) or 'goreleaser-pro': distribution: goreleaser workdir: ./server - version: latest - args: release --skip-publish --config .goreleaser-linux.yaml + version: '~> v2' + args: release --skip publish --config .goreleaser-linux.yaml env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} - name: Upload @@ -52,13 +52,13 @@ jobs: cache-dependency-path: server/go.sum cache: true - - uses: goreleaser/goreleaser-action@v4 + - uses: goreleaser/goreleaser-action@v6 with: # either 'goreleaser' (default) or 'goreleaser-pro': distribution: goreleaser workdir: ./server - version: latest - args: release --skip-publish --config .goreleaser-darwin.yaml + version: '~> v2' + args: release --skip publish --config .goreleaser-darwin.yaml env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} - name: Upload @@ -108,8 +108,9 @@ jobs: git status - name: Release - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v6 with: + version: '~> v2' args: release --clean --config .goreleaser.yaml env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7a3d318b..5c1f9696 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,4 @@ +version: 2 builds: - skip: true changelog: diff --git a/server/.goreleaser-darwin.yaml b/server/.goreleaser-darwin.yaml index d9f97f7c..35d08753 100644 --- a/server/.goreleaser-darwin.yaml +++ b/server/.goreleaser-darwin.yaml @@ -1,5 +1,6 @@ # This is an example .goreleaser.yml file with some sensible defaults. # Make sure to check the documentation at https://goreleaser.com +version: 2 before: hooks: # You may remove this if you don't use go modules. diff --git a/server/.goreleaser-linux.yaml b/server/.goreleaser-linux.yaml index 37c0e57c..96de37cf 100644 --- a/server/.goreleaser-linux.yaml +++ b/server/.goreleaser-linux.yaml @@ -1,5 +1,6 @@ # This is an example .goreleaser.yml file with some sensible defaults. # Make sure to check the documentation at https://goreleaser.com +version: 2 before: hooks: # You may remove this if you don't use go modules.