Skip to content

Commit

Permalink
ci: fix goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: zhuwenxing <[email protected]>
  • Loading branch information
zhuwenxing authored and SimFG committed Aug 12, 2024
1 parent 717e9a9 commit 6f8f6b1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/image_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ jobs:
docker push ${{ secrets.DOCKER_USER }}/milvus-cdc:${BRANCH}-latest
15 changes: 8 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
builds:
- skip: true
changelog:
Expand Down
1 change: 1 addition & 0 deletions server/.goreleaser-darwin.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions server/.goreleaser-linux.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 6f8f6b1

Please sign in to comment.