diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7a6ac418..5f9b2f6b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,7 +16,7 @@ jobs: with: fetch-depth: 0 - run: git fetch --force --tags - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: 1.18 cache: true @@ -29,7 +29,7 @@ jobs: with: # either 'goreleaser' (default) or 'goreleaser-pro': distribution: goreleaser - version: '~> v2' + version: latest args: release --clean env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} @@ -37,6 +37,7 @@ jobs: dockerhub: runs-on: ubuntu-latest + needs: goreleaser steps: - uses: actions/checkout@v3 with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3227879d..5d03e152 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.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. @@ -36,7 +37,7 @@ snapshot: brews: - name: milvus-backup - folder: Formula + directory: Formula homepage: "https://github.com/zilliztech/milvus-backup" repository: owner: zilliztech