From de47bfe07d900749342872576996561bc1ed1a17 Mon Sep 17 00:00:00 2001 From: "sheng.wang" Date: Thu, 4 Jul 2024 16:11:43 +0800 Subject: [PATCH] chore: migrate goreleaser v2 --- .github/workflows/golang.yml | 2 +- .github/workflows/release.yml | 2 +- .goreleaser.yaml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golang.yml b/.github/workflows/golang.yml index 09131f2..07983e3 100644 --- a/.github/workflows/golang.yml +++ b/.github/workflows/golang.yml @@ -19,6 +19,6 @@ jobs: - uses: actions/setup-go@v5 with: go-version: stable - - uses: goreleaser/goreleaser-action@v5 + - uses: goreleaser/goreleaser-action@v6 with: args: build --clean --snapshot diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 905a546..5d63d23 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: registry: ghcr.io username: starudream password: ${{ secrets.GITHUB_TOKEN }} - - uses: goreleaser/goreleaser-action@v5 + - uses: goreleaser/goreleaser-action@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 626c69d..7b04249 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + env: - CGO_ENABLED=0 - GO111MODULE=on